diff options
-rw-r--r-- | roles/wireguard/templates/wg0.conf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/wireguard/templates/wg0.conf b/roles/wireguard/templates/wg0.conf index 6e479a6..1d6140c 100644 --- a/roles/wireguard/templates/wg0.conf +++ b/roles/wireguard/templates/wg0.conf @@ -15,7 +15,7 @@ AllowedIPs = {{ peer.allowed_ips }} {% if peer.endpoint is defined %} Endpoint = {{ peer.endpoint }} {% endif %} -{% if peer.persistent_keepalive is defined %} +{% if peer.persistent_keepalive is defined and peer.persistent_keepalive %} PersistentKeepalive = 25 {% endif %} {% endfor %} |