Fix again
This commit is contained in:
3
index.js
3
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user