mirror of
https://github.com/WeeJeWel/wg-easy.git
synced 2024-11-18 00:19:22 +08:00
Update WireGuard.js
This commit is contained in:
parent
49a2949aea
commit
6a0a5a10be
@ -16,7 +16,7 @@ const {
|
|||||||
WG_PORT,
|
WG_PORT,
|
||||||
WG_DEFAULT_DNS,
|
WG_DEFAULT_DNS,
|
||||||
WG_DEFAULT_ADDRESS,
|
WG_DEFAULT_ADDRESS,
|
||||||
WG_PERSISTENTKEEPALIVE;
|
WG_PERSISTENT_KEEPALIVE;
|
||||||
WG_ALLOWED_IPS,
|
WG_ALLOWED_IPS,
|
||||||
} = require('../config');
|
} = require('../config');
|
||||||
|
|
||||||
@ -182,7 +182,7 @@ ${WG_DEFAULT_DNS ? `DNS = ${WG_DEFAULT_DNS}` : ''}
|
|||||||
PublicKey = ${config.server.publicKey}
|
PublicKey = ${config.server.publicKey}
|
||||||
PresharedKey = ${client.preSharedKey}
|
PresharedKey = ${client.preSharedKey}
|
||||||
AllowedIPs = ${WG_ALLOWED_IPS}
|
AllowedIPs = ${WG_ALLOWED_IPS}
|
||||||
PersistentKeepalive = ${WG_PERSISTENTKEEPALIVE}
|
PersistentKeepalive = ${WG_PERSISTENT_KEEPALIVE}
|
||||||
Endpoint = ${WG_HOST}:${WG_PORT}`;
|
Endpoint = ${WG_HOST}:${WG_PORT}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user