From f1b24d6ba407af864db3561f2805b528b0b8ae5d Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Thu, 4 Apr 2019 23:11:35 -0400 Subject: [PATCH] make endpoint optional --- templates/wg.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/wg.conf.j2 b/templates/wg.conf.j2 index b38e767..f91a652 100644 --- a/templates/wg.conf.j2 +++ b/templates/wg.conf.j2 @@ -12,6 +12,8 @@ PostDown = {{ item.post_down }} {% for peer in item.peers %} [Peer] PublicKey = {{ peer.public_key }} +{% if 'endpoint' in peer %} Endpoint = {{ peer.endpoint }} +{% endif %} AllowedIPs = {{ peer.allowed_ips }} {% endfor %} \ No newline at end of file