Adding Persistent Keepalive

This commit is contained in:
Fastidious 2021-07-14 20:53:59 -04:00 committed by GitHub
parent 587bb7a3f0
commit 31d1cb96fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,7 @@ const {
WG_PORT, WG_PORT,
WG_DEFAULT_DNS, WG_DEFAULT_DNS,
WG_DEFAULT_ADDRESS, WG_DEFAULT_ADDRESS,
WG_PERSISTENTKEEPALIVE;
WG_ALLOWED_IPS, WG_ALLOWED_IPS,
} = require('../config'); } = require('../config');
@ -181,6 +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}
Endpoint = ${WG_HOST}:${WG_PORT}`; Endpoint = ${WG_HOST}:${WG_PORT}`;
} }