Skip to content

Commit

Permalink
nixos/dhcpcd: if disabled IPv6 don't solicit or accept IPv6
Browse files Browse the repository at this point in the history
  • Loading branch information
Izorkin committed Oct 21, 2020
1 parent 79b036b commit d59bfde
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nixos/modules/services/networking/dhcpcd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}
'';

Expand Down

0 comments on commit d59bfde

Please sign in to comment.