Skip to content

Commit

Permalink
pin name pattern for ipsets to be saved
Browse files Browse the repository at this point in the history
  • Loading branch information
toralf committed Jun 29, 2024
1 parent 597b86f commit 55ea82c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ipv4-rules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ function saveIpset() {
}

function saveCertainIpsets() {
ipset list -n | grep -e 'tor-ddos-' -e 'tor-trust$' |
ipset list -n | grep -e '^tor-ddos-[0-9]*$' -e '^tor-trust$' |
while read -r name; do
saveIpset $name
done
Expand Down
2 changes: 1 addition & 1 deletion ipv6-rules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ function saveIpset() {
}

function saveCertainIpsets() {
ipset list -n | grep -e 'tor-.*6-' -e 'tor-trust6$' |
ipset list -n | grep -e '^tor-ddos6-[0-9]*$' -e '^tor-trust6$' |
while read -r name; do
saveIpset $name
done
Expand Down

0 comments on commit 55ea82c

Please sign in to comment.