From e89b246a7280cce164b18eb29ab505eb54b86fcd Mon Sep 17 00:00:00 2001 From: nd Date: Fri, 3 Mar 2023 20:28:10 +0100 Subject: [PATCH] add keepalive option --- templates/wireguard.conf.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/wireguard.conf.j2 b/templates/wireguard.conf.j2 index 89a905a..f0059a8 100644 --- a/templates/wireguard.conf.j2 +++ b/templates/wireguard.conf.j2 @@ -15,4 +15,7 @@ PresharedKey = {{ peer.PresharedKey }} {% if peer.Endpoint is defined %} Endpoint = {{ peer.Endpoint }} {% endif %} +{% if peer.PersistentKeepalive is defined %} +PersistentKeepalive = {{ peer.PersistentKeepalive }} +{% endif %} {% endfor %}