diff options
Diffstat (limited to 'roles/install_wireguard_backbone')
-rw-r--r-- | roles/install_wireguard_backbone/templates/wg2.conf.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/install_wireguard_backbone/templates/wg2.conf.j2 b/roles/install_wireguard_backbone/templates/wg2.conf.j2 index cbccda8..c30fcaf 100644 --- a/roles/install_wireguard_backbone/templates/wg2.conf.j2 +++ b/roles/install_wireguard_backbone/templates/wg2.conf.j2 @@ -5,5 +5,5 @@ PrivateKey = {{ wireguard_bb_priv_key }} [Peer] PublicKey = {{ item.pub_key }} AllowedIPs = 0.0.0.0/0,::/0 -Endpoint = [{{ item.endpoint }}]:{{ wireguard_bb_port }} +{% if item.endpoint is defined %}Endpoint = [{{ item.endpoint }}]:{{ wireguard_bb_port }}{% endif %} PersistentKeepalive = 30 |