Remove unnecessary and buggy check preventing proper port from being set in peers ()

master
Anes Belfodil committed by GitHub
parent c4a5677f72
commit 840f56262d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -65,7 +65,7 @@ PersistentKeepalive = {{hostvars[host].wireguard_persistent_keepalive}}
)
%}
Endpoint = {{hostvars[host].wireguard_dc['endpoint']}}:{{hostvars[host].wireguard_dc['port']}}
{% elif hostvars[host].wireguard_port is defined and hostvars[host].wireguard_port is number %}
{% elif hostvars[host].wireguard_port is defined %}
{% if hostvars[host].wireguard_endpoint is defined and hostvars[host].wireguard_endpoint != "" %}
Endpoint = {{hostvars[host].wireguard_endpoint}}:{{hostvars[host].wireguard_port}}
{% else %}

Loading…
Cancel
Save