summaryrefslogtreecommitdiffstats
path: root/roles/network/templates/wifi-connection.nmconnection.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/network/templates/wifi-connection.nmconnection.j2')
-rw-r--r--roles/network/templates/wifi-connection.nmconnection.j26
1 files changed, 5 insertions, 1 deletions
diff --git a/roles/network/templates/wifi-connection.nmconnection.j2 b/roles/network/templates/wifi-connection.nmconnection.j2
index 5b4ab185..01dff2eb 100644
--- a/roles/network/templates/wifi-connection.nmconnection.j2
+++ b/roles/network/templates/wifi-connection.nmconnection.j2
@@ -27,9 +27,13 @@ method=auto
[ipv6]
addr-gen-mode=default
+{% if network_ipv6_disabled %}
+method=disabled
+{% elif network_ipv6_gateway is defined %}
method=auto
-{% if network_ipv6_gateway is defined %}
routes=::/0,{{ network_ipv6_gateway }},100
+{% else %}
+method=auto
{% endif %}
[proxy]