Skip to content

Commit

Permalink
Merge pull request #40 from brvphoenix/test
Browse files Browse the repository at this point in the history
Fix #37
  • Loading branch information
brvphoenix authored Nov 29, 2020
2 parents ed7297c + c33ae8e commit f481881
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,11 @@ function resolveHostNameByMACAddr() {
];
for (var i = 0; i < leaseNames.length; i++) {
for (var j = 0; j < leaseNames[i].length; j++) {
macaddr = leaseNames[i][j].macaddr.toLowerCase();
if (!(macaddr in hostNames) || hostNames[macaddr] == '-') {
hostNames[macaddr] = leaseNames[i][j].hostname || '-';
if (leaseNames[i][j].macaddr) {
macaddr = leaseNames[i][j].macaddr.toLowerCase();
if (!(macaddr in hostNames) || hostNames[macaddr] == '-') {
hostNames[macaddr] = leaseNames[i][j].hostname || '-';
}
}
}
}
Expand Down

0 comments on commit f481881

Please sign in to comment.