From 310516ab486d2c088b0b8f162737598adcaf1c43 Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Sun, 25 Jun 2023 14:25:49 +0200 Subject: [PATCH] Fix again --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 660b276..28da44f 100644 --- a/index.js +++ b/index.js @@ -77,8 +77,7 @@ async function vpnConnect(vpnName) { 'Content-Type': 'application/json', }, }); - const ipResponse = await response.json(); - const ip = ipResponse.data; + const ip = await response.json(); consoleLog(`[${host}] VPN connection successfully established to ${vpnName} (IP: ${ip.data}).`, 'info'); return 0; }