From 61729ac9b56de477efe87f7d2a4fa5dd7a7af2ae Mon Sep 17 00:00:00 2001 From: Jack Ivanov <17044561+jackivanov@users.noreply.github.com> Date: Thu, 12 Sep 2019 12:52:10 +0200 Subject: [PATCH] Update client.conf.j2 (#1580) --- roles/wireguard/templates/client.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/wireguard/templates/client.conf.j2 b/roles/wireguard/templates/client.conf.j2 index cfa844e..409ec18 100644 --- a/roles/wireguard/templates/client.conf.j2 +++ b/roles/wireguard/templates/client.conf.j2 @@ -8,6 +8,6 @@ DNS = {{ wireguard_dns_servers }} [Peer] PublicKey = {{ lookup('file', wireguard_pki_path + '/public/' + IP_subject_alt_name) }} PresharedKey = {{ lookup('file', wireguard_pki_path + '/preshared/' + item.1) }} -AllowedIPs = 0.0.0.0/0{{ ', ::/0' if ipv6_support else '' }} +AllowedIPs = 0.0.0.0/0,::/0 Endpoint = {{ IP_subject_alt_name }}:{{ wireguard_port }} {{ 'PersistentKeepalive = ' + wireguard_PersistentKeepalive|string if wireguard_PersistentKeepalive > 0 else '' }}