From ebd72bf48a50015bdadb8968d36f170aa66b5376 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20M=C3=A4rkle?= Date: Mon, 28 Dec 2020 17:22:32 +0100 Subject: [PATCH] Bugfix: off by one at the IP addresses --- roles/wireguard_server/templates/wg0-client.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/wireguard_server/templates/wg0-client.conf b/roles/wireguard_server/templates/wg0-client.conf index 4b160f8..d621a18 100644 --- a/roles/wireguard_server/templates/wg0-client.conf +++ b/roles/wireguard_server/templates/wg0-client.conf @@ -1,6 +1,6 @@ [Interface] -Address = {{ vpn_network }}.{{item|int + 1}}/32 -DNS = 9.9.9.9 +Address = {{ vpn_network }}.{{item|int + 2}}/32 +DNS = {{ dns_for_clients }} PrivateKey = {{ item.stdout }} [Peer]