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 aa78957 commit 17d4fb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ const print = console.log;

// GLOBALS
let myip = 'THIS_COMPUTER_IP';
iface_loop:
for (let key of Object.keys(ifaces)) {
for (let device of ifaces[key]) {
if (device.family == 'IPv4' && !device.internal) {
myip = device.address;
break(2);
break iface_loop;
}
}
}
Expand Down

0 comments on commit 17d4fb1

Please sign in to comment.