Skip to content

Commit

Permalink
add missing builtins.length check to nnf-default-stopRuleset.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
IMax153 authored and thelegy committed May 12, 2024
1 parent 412ea84 commit 2c5a199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/snippets/nnf-default-stopRuleset.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ in
ip protocol icmp icmp type echo-request accept
# accept SSH connections (required for a server)
${optionalString (ports > 0) "tcp dport ${toPortList ports} accept"}
${optionalString (length ports > 0) "tcp dport ${toPortList ports} accept"}
# count and drop any other traffic
counter drop
Expand Down

0 comments on commit 2c5a199

Please sign in to comment.