Fix setting default v4 firewall.
This commit is contained in:
parent
cb9b250527
commit
4f20be3efc
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ states_restore() {
|
|||
# Restore the saved (or default) v4 firewall state.
|
||||
iptables-restore "$RULES_DIR/$STATE_V4" 2>/dev/null || {
|
||||
printf "%s: %s" "${0##*/}" "failed to restore saved" >&2
|
||||
if iptables-restore "$$RULES_DIR/DEFAULT_V4" 2>/dev/null; then
|
||||
if iptables-restore "$RULES_DIR/$DEFAULT_V4" 2>/dev/null; then
|
||||
printf "%s" ", only default" >&2
|
||||
else
|
||||
printf " %s" "and default" >&2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue