nixos/dhcpcd: if disabled IPv6 don't solicit or accept IPv6
This commit is contained in:
parent
79b036b7db
commit
d59bfded58
|
@ -69,6 +69,11 @@ let
|
|||
if-carrier-up = "";
|
||||
}.${cfg.wait}}
|
||||
|
||||
${optionalString (config.networking.enableIPv6 == false) ''
|
||||
# Don't solicit or accept IPv6 Router Advertisements and DHCPv6 if disabled IPv6
|
||||
noipv6
|
||||
''}
|
||||
|
||||
${cfg.extraConfig}
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in New Issue