This commit is contained in:
2023-06-25 14:22:17 +02:00
parent 93bac87ae1
commit 4b60d648b6

View File

@@ -85,12 +85,13 @@ async function vpnConnect(vpnName) {
}
}
catch (error) {
consoleLog(`[${host}] Failed to connect to VPN: ${vpnName}. Retrying (attempt ${attempt} of ${maxAttempts})...`, 'error');
consoleLog(`[${host}] Catch error: Failed to connect to VPN: ${vpnName}. Retrying (attempt ${attempt} of ${maxAttempts})...`, 'error');
await sleep(1000);
}
}
consoleLog(`[${host}] Maximum number of connection attempts reached. Failed to connect to VPN: ${vpnName}`, 'error');
await vpnDisconnect();
return 1;
}