Add default

This commit is contained in:
Antonio J. Delgado 2023-10-05 10:42:02 +03:00
parent 205fda69c5
commit 61d55fadfb

View file

@ -1,5 +1,5 @@
[Interface]
Address = {{ wg_address }}
Address = {{ wg_address | default(AllowedIPs) }}
PrivateKey = {{ private_key }}
ListenPort = {{ listenport }}
{% if vpn_dns is defined %}DNS = {{ vpn_dns }}{% endif %}