mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
fail2ban: fix firewall warning
This commit is contained in:
parent
54a0e269b3
commit
017dca51fa
@ -216,7 +216,7 @@ in
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
warnings = mkIf (config.networking.firewall.enable == false || config.networking.nftables.enable == false) [
|
||||
warnings = mkIf (config.networking.firewall.enable == false && config.networking.nftables.enable == false) [
|
||||
"fail2ban can not be used without a firewall"
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user