Skip to content

Commit

Permalink
Fix #37
Browse files Browse the repository at this point in the history
  • Loading branch information
brvphoenix committed Nov 29, 2020
1 parent 338d3e5 commit c33ae8e
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 c33ae8e

Please sign in to comment.