diff options
Diffstat (limited to 'main/shorewall-shell/shorewall-shell-providers-gateway-none.patch')
-rw-r--r-- | main/shorewall-shell/shorewall-shell-providers-gateway-none.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/main/shorewall-shell/shorewall-shell-providers-gateway-none.patch b/main/shorewall-shell/shorewall-shell-providers-gateway-none.patch index 531c37ed77..53459ab5f5 100644 --- a/main/shorewall-shell/shorewall-shell-providers-gateway-none.patch +++ b/main/shorewall-shell/shorewall-shell-providers-gateway-none.patch @@ -36,3 +36,14 @@ fi save_command "if [ -w /etc/iproute2/rt_tables ]; then" +--- ./lib.providers.orig ++++ ./lib.providers +@@ -267,7 +267,7 @@ + rulenum=\$((\$rulenum + 1)) + done + __EOF__ +- elif [ -n "$DELETE_THEN_ADD" ]; then ++ elif [ -n "$DELETE_THEN_ADD" ] && [ -n "$gateway" ]; then + indent >&3 << __EOF__ + + find_interface_addresses $interface | while read address; do |