Skip to content

Commit

Permalink
Update server.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
htool committed Jun 4, 2024
1 parent 1b81050 commit 748e799
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ function allAddresses (type): string[] {
for (const ifname in interfaces) {
if (ifname in interfaces) {
interfaces[ifname]?.forEach((a) => {
// Checking for repeating MAC address to avoid trying to listen on same interface twice
if (a.family === family && !macs.includes(a.mac)) {
addresses.push(a.address)
macs.push(a.mac)
Expand Down

0 comments on commit 748e799

Please sign in to comment.