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