forked from mirrors/nixpkgs
Merge pull request #83153 from ciil/fail2ban-warning
fail2ban: fix firewall warning
This commit is contained in:
commit
e65c411356
|
@ -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 a new issue