Skip to content

Commit

Permalink
Update lib/server.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Romann <[email protected]>
  • Loading branch information
htool and JKRhb authored Jun 5, 2023
1 parent 0121601 commit 6c68467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function allAddresses (type): string[] {
for (const ifname in interfaces) {
if (ifname in interfaces) {
interfaces[ifname]?.forEach((a) => {
if (a.family === family && macs.includes(a.mac) == false) {
if (a.family === family && !macs.includes(a.mac)) {
addresses.push(a.address)
macs.push(a.address)
}
Expand Down

0 comments on commit 6c68467

Please sign in to comment.