From 013e3e142e40a345ee723f8cee318229fadf6ab8 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 7 Aug 2023 21:18:54 +0200 Subject: wireguard: persistent_keepalive can be set to false --- roles/wireguard/templates/wg0.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/wireguard') 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 %} -- cgit v1.2.3