From 551ac6fc015eea10fa0ee89114b584816e02e5d3 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Fri, 4 Nov 2022 18:54:06 +0200 Subject: [PATCH] use listen port --- templates/wireguard_client.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/wireguard_client.conf b/templates/wireguard_client.conf index 4d737ae..eaa3784 100644 --- a/templates/wireguard_client.conf +++ b/templates/wireguard_client.conf @@ -11,6 +11,6 @@ ListenPort = {{ listenport }} PublicKey = {{ item.PublicKey }} AllowedIPs = {{ item.AllowedIPs }} {% if item.EndPointIP is defined and item.EndPointIP != '' %} -EndPoint = {{ item.EndPointIP }}:{{ listenport }} +EndPoint = {{ item.EndPointIP }}:{{ item.listenport | default(listenport) }} {% endif %} {% endif %}{% endfor %}