- Fix "removedIPs is not defined" error in cleanupInterfaces function
by initializing removedIPs outside conditional block
This commit is contained in:
@@ -458,10 +458,10 @@ 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)
|
// Remove virtual interfaces (skip if disabled)
|
||||||
if (process.env.DISABLE_VIRTUAL_INTERFACES !== 'true') {
|
if (process.env.DISABLE_VIRTUAL_INTERFACES !== 'true') {
|
||||||
const removedIPs = new Set();
|
|
||||||
for (const [domain, ip] of state.domainToIPMap) {
|
for (const [domain, ip] of state.domainToIPMap) {
|
||||||
if (reservedIPs.includes(ip)) {
|
if (reservedIPs.includes(ip)) {
|
||||||
logDebug('Cleanup', `Skipping removal of reserved IP ${ip} for domain ${domain}`);
|
logDebug('Cleanup', `Skipping removal of reserved IP ${ip} for domain ${domain}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user