Make DNS optional
This commit is contained in:
parent
503e0664db
commit
ca99b3c6cb
@ -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 }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user