Use ipv4 for wireguard >.>
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Tobias Manske 2024-05-08 19:51:19 +02:00
parent f7c955472c
commit 7116505ce8

View File

@ -15,11 +15,7 @@ PrivateKey = {{ wg_private_key | mandatory }}
[peer]
PublicKey = {{ hvar.wg_public_key | mandatory }}
AllowedIPs = {{ hvar.wg_addr | mandatory }}/32
{% if hvar.ansible_default_ipv6 is defined and ansible_default_ipv6 is defined and hvar.ansible_default_ipv6.scope == "global" and ansible_default_ipv6.scope == "global" %}
Endpoint = [{{ hvar.ansible_default_ipv6.address | mandatory }}]:52000
{% else %}
Endpoint = [{{ hvar.ansible_default_ipv4.address | mandatory }}]:52000
{% endif %}
{% if hvar.wg_keepalive is defined %}
PersistentKeepalive = {{ hvar.wg_keepalive }}
{% endif %}