mirror of
https://github.com/appium/appium.git
synced 2026-02-13 05:19:47 -06:00
Merge pull request #4823 from jlipps/master
fix localIP discovery for real device tests; node's os.networkInterfaces...
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user