Make DNS optional

This commit is contained in:
Lars Hahn 2025-02-10 22:56:54 +01:00
parent 503e0664db
commit ca99b3c6cb

View File

@ -1,7 +1,9 @@
[Interface] [Interface]
Address = {{ wireguard_gateway_net_prefix }}.{{ wireguard_clients[wireguard_client_host].index }}/{{ wireguard_gateway_net_cidr }} Address = {{ wireguard_gateway_net_prefix }}.{{ wireguard_clients[wireguard_client_host].index }}/{{ wireguard_gateway_net_cidr }}
PrivateKey = {{ wireguard_clients[wireguard_client_host].private_key }} PrivateKey = {{ wireguard_clients[wireguard_client_host].private_key }}
{% if cloud_internal_dns is defined and cloud_internal_dns != "" %}
DNS = {{ cloud_internal_dns }} DNS = {{ cloud_internal_dns }}
{% endif %}
[Peer] [Peer]
PublicKey = {{ wireguard_gateway_public_key }} PublicKey = {{ wireguard_gateway_public_key }}