From 31d1cb96fc4236d9e974a45e64f0376ff7cbec9f Mon Sep 17 00:00:00 2001 From: Fastidious Date: Wed, 14 Jul 2021 20:53:59 -0400 Subject: [PATCH] Adding Persistent Keepalive --- src/lib/WireGuard.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/WireGuard.js b/src/lib/WireGuard.js index 565cd3e..5a5086e 100644 --- a/src/lib/WireGuard.js +++ b/src/lib/WireGuard.js @@ -16,6 +16,7 @@ const { WG_PORT, WG_DEFAULT_DNS, WG_DEFAULT_ADDRESS, + WG_PERSISTENTKEEPALIVE; WG_ALLOWED_IPS, } = require('../config'); @@ -181,6 +182,7 @@ ${WG_DEFAULT_DNS ? `DNS = ${WG_DEFAULT_DNS}` : ''} PublicKey = ${config.server.publicKey} PresharedKey = ${client.preSharedKey} AllowedIPs = ${WG_ALLOWED_IPS} +PersistentKeepalive = ${WG_PERSISTENTKEEPALIVE} Endpoint = ${WG_HOST}:${WG_PORT}`; }