diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-07-01 11:50:48 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-07-01 11:50:48 +0000 |
commit | 72b1dea82a0b16bf94f0d478fea950b7e1bca51e (patch) | |
tree | 3ce7ffc131b8682c01dd62799b6ae37cee7750ed /package/firewall | |
parent | 3c544257f51524d59c311ec2d933b7b172d93f92 (diff) | |
download | upstream-72b1dea82a0b16bf94f0d478fea950b7e1bca51e.tar.gz upstream-72b1dea82a0b16bf94f0d478fea950b7e1bca51e.tar.bz2 upstream-72b1dea82a0b16bf94f0d478fea950b7e1bca51e.zip |
[package] firewall: fix port range quirk in previous commit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27335 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/firewall')
-rw-r--r-- | package/firewall/files/reflection.hotplug | 4 |
1 files changed, 2 insertions, 2 deletions
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" |