Skip to content

Commit

Permalink
Merge pull request #3 from adonespitogo/master
Browse files Browse the repository at this point in the history
query os.networkInterfaces() everytime
  • Loading branch information
eiriksm committed Apr 9, 2018
2 parents 540d246 + 2ea5d5a commit 2d38198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
@@ -1,9 +1,9 @@
'use strict';
var os = require('os');
var util = require('util');
var ifaces = os.networkInterfaces();

var getLocalIp = function(iface, callback) {
var ifaces = os.networkInterfaces();
var returnVal;
Object.keys(ifaces).forEach(function(dev) {
// If the user does not specify anything, last value will be returned.
Expand Down

0 comments on commit 2d38198

Please sign in to comment.