Skip to content

Commit

Permalink
installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffmikels committed Jan 15, 2021
1 parent 26a2ea6 commit adabb90
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ const print = console.log;
// GLOBALS
let myip = 'THIS_COMPUTER_IP';
for (let key of Object.keys(ifaces)) {
let device = ifaces[key][0]
if (device.family == 'IPv4' && !device.internal) {
myip = device.address;
break;
for (let device of ifaces[key]) {
if (device.family == 'IPv4' && !device.internal) {
myip = device.address;
break 2;
}
}
}

Expand Down

0 comments on commit adabb90

Please sign in to comment.