Skip to content
This repository has been archived by the owner on Nov 23, 2017. It is now read-only.

Commit

Permalink
fixed macAddressResolver failure
Browse files Browse the repository at this point in the history
parens ftw
  • Loading branch information
Klaus Großmann committed Dec 2, 2015
1 parent 2a14e36 commit 19ed2b0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions client/lib/macAddressResolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ module.exports = (function (interfaces) {
if (carry) {
return carry;
}
else {
return interfaces[current].reduce(function (carry, current) {
return carry || true === current.internal ? undefined : current.mac;
}, undefined);
}

return interfaces[current].reduce(function (carry, current) {
return carry || (false === current.internal ? current.mac : undefined);
}, undefined);
}, undefined);
})(os.networkInterfaces());

0 comments on commit 19ed2b0

Please sign in to comment.