mirror of
https://github.com/edu4rdshl/tor-router.git
synced 2026-07-17 23:24:48 +00:00
Fix issue detecting the rules file.
This commit is contained in:
parent
3a81a3b48a
commit
144767ebb2
1 changed files with 6 additions and 6 deletions
|
|
@ -59,14 +59,14 @@ case "$1" in
|
|||
fi
|
||||
;;
|
||||
stop)
|
||||
if ! -f "$RULES"; then
|
||||
echo "$RULES does not exist. Not doing anything."
|
||||
exit
|
||||
else
|
||||
if test -f "$RULES"; then
|
||||
echo "Restoring previous rules from $RULES"
|
||||
iptables -t nat -F
|
||||
iptables-restore < $RULES
|
||||
rm $RULES
|
||||
iptables-restore < "$RULES"
|
||||
rm "$RULES"
|
||||
else
|
||||
echo "$RULES does not exist. Not doing anything."
|
||||
exit
|
||||
fi
|
||||
;;
|
||||
restart)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue