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() {