Merge pull request #4823 from jlipps/master

fix localIP discovery for real device tests; node's os.networkInterfaces...
This commit is contained in:
Jonathan Lipps
2015-03-31 11:08:21 -07:00

View File

@@ -234,6 +234,7 @@ if (env.SAUCE && env.TARBALL) {
// rest enf points
env.localIP = function () {
var ip = _.chain(os.networkInterfaces())
.values()
.flatten()
.filter(function (val) {
return (val.family === 'IPv4' && val.internal === false);