Fix incorrect variable name preventing DNS configuration on the Hub

This commit is contained in:
Alexander Gorelyshev
2025-12-25 21:28:03 +04:00
parent 1d17638deb
commit 756bc77493

View File

@@ -28,7 +28,7 @@
PrivateKey = {{ wg_hub_wg_pkey }}
PreUp = sysctl -w net.ipv4.ip_forward=1
{% if dns_server is defined %}
{% if wg_hub_dns_server is defined %}
PostUp = resolvectl dns %i {{ wg_hub_dns_server }}; resolvectl domain %i {{ wg_hub_iface_name }}.local
{% endif %}
PostDown = sysctl -w net.ipv4.ip_forward=0