Update templates/wg.conf.j2
Co-Authored-By: Robert Wimmer <2039811+githubixx@users.noreply.github.com>
This commit is contained in:
parent
2e77716b46
commit
ad54ceba8b
|
@ -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 %}
|
||||||
|
|
Reference in a new issue