Merge pull request #101249 from Izorkin/dhcpd-ipv6

nixos/dhcpcd: if disabled IPv6 don't solicit or accept IPv6
This commit is contained in:
Jörg Thalheim 2020-11-04 08:09:08 +01:00 committed by GitHub
commit f2ec450424
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}
'';