remove bash syntax that doesn't work on OpenWRT
This commit is contained in:
parent
f408072a81
commit
b14355ce2c
@ -35,7 +35,7 @@ else
|
|||||||
LIMIT="10/minute"
|
LIMIT="10/minute"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
function link_set {
|
link_set () {
|
||||||
if [ "$3" = "log" ]; then
|
if [ "$3" = "log" ]; then
|
||||||
iptables -A "$1" -m set --match-set "$2" src,dst -m limit --limit "$LIMIT" -j LOG --log-prefix "BLOCK $2 "
|
iptables -A "$1" -m set --match-set "$2" src,dst -m limit --limit "$LIMIT" -j LOG --log-prefix "BLOCK $2 "
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user