diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-02-29 19:08:52 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-02-29 20:30:27 +0100 |
commit | 194686564ee07a0030ef007fa9633f6f93ac5358 (patch) | |
tree | 4b48471a96f5fe0a77f3a81b1a67a34fe8b04260 /roles/wireguard/gateway/templates | |
parent | update accesspoints (diff) |
ele-router basic wireguard setup
Diffstat (limited to 'roles/wireguard/gateway/templates')
-rw-r--r-- | roles/wireguard/gateway/templates/systemd.netdev.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/wireguard/gateway/templates/systemd.netdev.j2 b/roles/wireguard/gateway/templates/systemd.netdev.j2 index 62f0d0a6..96399b52 100644 --- a/roles/wireguard/gateway/templates/systemd.netdev.j2 +++ b/roles/wireguard/gateway/templates/systemd.netdev.j2 @@ -18,7 +18,7 @@ PublicKey={{ peer.pub_key }} AllowedIPs={{ ip }} {% endfor %} {% if 'endpoint' in peer %} -Endpoint={{ peer.endpoint }} +Endpoint={{ peer.endpoint.host }}:{{ peer.endpoint.port | default(51820) }} {% endif %} {% if 'keepalive_interval' in peer %} PersistentKeepalive={{ peer.keepalive_interval }} |