From e05ab76cb2234635bb711b1a266f001c5f8cd239 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Wed, 9 Aug 2023 14:55:05 +0300 Subject: [PATCH] fix template --- templates/wireguard_client.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/wireguard_client.conf b/templates/wireguard_client.conf index 1d4cb58..3d22dc4 100644 --- a/templates/wireguard_client.conf +++ b/templates/wireguard_client.conf @@ -1,5 +1,6 @@ [Interface] -Address = {% for item in wireguard_peers %}{% if item['name'] == inventory_hostname %}{{ item['AllowedIPs'] }}{% endif %}{% endfor %} +Address = {% for item in wireguard_peers %}{% if item['name'] == inventory_hostname %}{{ item['AllowedIPs'] }} +{% endif %}{% endfor %} PrivateKey = {{ private_key }} ListenPort = {{ listenport }} DNS = {% if vpn_dns is defined %}{{ vpn_dns }}{% else %}{{ server_address }}{% endif %}