make endpoint optional

This commit is contained in:
Mohammed Naser 2019-04-04 23:11:35 -04:00
parent 25b34a60f2
commit f1b24d6ba4

View File

@ -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 %}