commit - c27e7ff850208c00e6ce99324ace62ed4fe0580c
commit + bcc5ac4627b3d523742af2510a6fbea964bcc7e5
blob - 79ee9f5ab35709f470ef79890d19ea2e3fbd32e2
blob + 44b654d9c3e520a22e151c64ca43b8fc08b1d11f
--- http-ban.sh
+++ http-ban.sh
: "${HTTPBAN_TABLE:=httpban}"
alias log="logger -st http-ban"
-alias show="doas /sbin/pfctl -t players -T show"
-alias ban="doas /sbin/pfctl -t players -T add -f-"
-alias grace="doas /sbin/pfctl -t players -T delete -f-"
+alias show="doas /sbin/pfctl -t \$HTTPBAN_TABLE -T show"
+alias ban="doas /sbin/pfctl -t \$HTTPBAN_TABLE -T add -f-"
+alias grace="doas /sbin/pfctl -t \$HTTPBAN_TABLE -T delete -f-"
# Filter functions returning 'count IP' based on HTTP return code
IN_300_HOSTS() {