- Fix "removedIPs is not defined" error in cleanupInterfaces function
by initializing removedIPs outside conditional block
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user