From: Jo-Philipp Wich Date: Fri, 1 Jul 2011 11:50:48 +0000 (+0000) Subject: firewall: fix port range quirk in previous commit X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=600a8517ad0af17a501b6d59a4becbfe28373681;p=librecmc%2Flibrecmc.git firewall: fix port range quirk in previous commit SVN-Revision: 27335 --- diff --git a/package/firewall/files/reflection.hotplug b/package/firewall/files/reflection.hotplug index 7ab4c5fe81..15e350082a 100644 --- a/package/firewall/files/reflection.hotplug +++ b/package/firewall/files/reflection.hotplug @@ -71,13 +71,13 @@ if [ "$ACTION" = "add" ] && [ "$INTERFACE" = "wan" ]; then [ -n "$extport" ] || return epmin="${extport%[-:]*}"; epmax="${extport#*[-:]}" - [ "$epmin" != "$epmax" ] || epmax="" + [ "${epmin#!}" != "$epmax" ] || epmax="" local ipmin ipmax intport config_get intport "$cfg" dest_port "$extport" ipmin="${intport%[-:]*}"; ipmax="${intport#*[-:]}" - [ "$ipmin" != "$ipmax" ] || ipmax="" + [ "${ipmin#!}" != "$ipmax" ] || ipmax="" local exthost config_get exthost "$cfg" src_dip "$wanip"