From 9969307aef5ad4bf3b1ba81a51e4f36caccd06b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Beye?= Date: Tue, 16 Jan 2024 17:33:56 +0100 Subject: [PATCH] fix: Gracefully handle development on systems with bonded network interfaces --- backend/lib/utils/LinuxTools.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/lib/utils/LinuxTools.js b/backend/lib/utils/LinuxTools.js index 85288c71e61..432e1bc4148 100644 --- a/backend/lib/utils/LinuxTools.js +++ b/backend/lib/utils/LinuxTools.js @@ -40,7 +40,7 @@ class LinuxTools { const interfaces = fs.readdirSync("/sys/class/net"); const macAddresses = new Set(); - interfaces.forEach(i => { + interfaces.filter(i => i !== "bonding_masters").forEach(i => { const mac = fs.readFileSync(`/sys/class/net/${i}/address`).toString().trim(); if (!mac.startsWith("00:00")) { @@ -97,7 +97,7 @@ class LinuxTools { } /** - * + * * @returns {string | undefined} */ static GET_GATEWAY_IP() {