This commit is contained in:
Shahrad Elahi
2023-12-22 00:34:07 +03:30
parent ac5275168c
commit 0dc9e89b6c
16 changed files with 156 additions and 85 deletions

View File

@@ -8,7 +8,7 @@ export const GET: RequestHandler = async () => {
// if the host is not set, then we are using the server's public IP
if (!WG_HOST) {
const { stdout: resp } = await execaCommand('curl -s ifconfig.me');
const { stdout: resp } = await execa('curl -s ifconfig.me', { shell: true });
WG_HOST = resp.trim();
}