- Fix "removedIPs is not defined" error in cleanupInterfaces function

by initializing removedIPs outside conditional block
This commit is contained in:
Raven Scott
2025-12-21 02:15:59 -05:00
parent cbeffd61f7
commit 75a2792579
+2 -2
View File
@@ -457,11 +457,11 @@ async function cleanupInterfaces() {
}
}
const reservedIPs = ['127.0.0.1'];
const reservedIPs = ['127.0.0.1'];
const removedIPs = new Set();
// Remove virtual interfaces (skip if disabled)
if (process.env.DISABLE_VIRTUAL_INTERFACES !== 'true') {
const removedIPs = new Set();
for (const [domain, ip] of state.domainToIPMap) {
if (reservedIPs.includes(ip)) {
logDebug('Cleanup', `Skipping removal of reserved IP ${ip} for domain ${domain}`);