From 748e79911cea3f44b744dbe7f3fa378a6f7e418d Mon Sep 17 00:00:00 2001 From: Hans Date: Tue, 4 Jun 2024 09:22:49 +0200 Subject: [PATCH] Update server.ts --- lib/server.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/server.ts b/lib/server.ts index 85bf2ffe..d655feba 100644 --- a/lib/server.ts +++ b/lib/server.ts @@ -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)