firewall.nix: Respect networking.enableIPv6 = false
Reported-by: Pablo Costa <modulistic@gmail.com>
This commit is contained in:
parent
75583c7984
commit
d12dd340b6
@ -33,7 +33,9 @@ let
|
|||||||
# Helper command to manipulate both the IPv4 and IPv6 tables.
|
# Helper command to manipulate both the IPv4 and IPv6 tables.
|
||||||
ip46tables() {
|
ip46tables() {
|
||||||
iptables "$@"
|
iptables "$@"
|
||||||
|
${optionalString config.networking.enableIPv6 ''
|
||||||
ip6tables "$@"
|
ip6tables "$@"
|
||||||
|
''}
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user