This commit is contained in:
2023-06-25 12:27:24 +02:00
parent 949cb4be86
commit 0c139b6529
4 changed files with 491 additions and 2 deletions

View File

@@ -52,6 +52,7 @@ async function vpnConnect(vpnName) {
const status = execSync('nmcli connection show --active')
.toString()
.includes(vpnName);
console.log(status);
if (status) {
const ip = await get('https://api.ipify.org');
consoleLog(`[${host}] VPN connection successfully established to ${vpnName} (IP: ${ip.data}).`, 'info');