1
0
Fork 0

Update templates/wg.conf.j2

Co-Authored-By: Robert Wimmer <2039811+githubixx@users.noreply.github.com>
This commit is contained in:
fbourqui 2019-11-02 05:39:54 +01:00 committed by GitHub
parent 2e77716b46
commit ad54ceba8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ SaveConfig = true
Endpoint = {{host}}:{{hostvars[host].wireguard_port}} Endpoint = {{host}}:{{hostvars[host].wireguard_port}}
{% endif %} {% endif %}
{% elif hostvars[host].wireguard_endpoint is defined and hostvars[host].wireguard_endpoint != "" %} {% elif hostvars[host].wireguard_endpoint is defined and hostvars[host].wireguard_endpoint != "" %}
Endpoint = {{hostvars[host].wireguard_endpoint}}:51820 Endpoint = {{hostvars[host].wireguard_endpoint}}:{{wireguard_port}}
{% else %} {% else %}
Endpoint = {{host}}:51820 Endpoint = {{host}}:51820
{% endif %} {% endif %}