From 6c684670410fce29efc2d42692074e4e03b81ea0 Mon Sep 17 00:00:00 2001 From: Hans Date: Mon, 5 Jun 2023 12:07:19 +0200 Subject: [PATCH] Update lib/server.ts Co-authored-by: Jan Romann --- lib/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server.ts b/lib/server.ts index 5ec96e0f..324b0e0e 100644 --- a/lib/server.ts +++ b/lib/server.ts @@ -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) }