diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-05-31 01:34:47 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-05-31 01:34:47 +0000 |
commit | a756114e593fe2c287c46f75f4bff6e8bc363ebf (patch) | |
tree | d826818c5552b4b97fb35d8a2fa6e23891028699 /package/firewall/files/lib/fw.sh | |
parent | c14e8be3378e159a3fef9aa561f91ce5c671e266 (diff) | |
download | upstream-a756114e593fe2c287c46f75f4bff6e8bc363ebf.tar.gz upstream-a756114e593fe2c287c46f75f4bff6e8bc363ebf.tar.bz2 upstream-a756114e593fe2c287c46f75f4bff6e8bc363ebf.zip |
firewall: change the order of IPv4/IPv6 address detection, fixes mixed notation v6 improperly detected as v4 address
SVN-Revision: 21642
Diffstat (limited to 'package/firewall/files/lib/fw.sh')
-rw-r--r-- | package/firewall/files/lib/fw.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/firewall/files/lib/fw.sh b/package/firewall/files/lib/fw.sh index 553642070c..86e817182b 100644 --- a/package/firewall/files/lib/fw.sh +++ b/package/firewall/files/lib/fw.sh @@ -51,8 +51,8 @@ fw__exec() { # <action> <family> <table> <chain> <target> <position> { <rules> } shift while [ "$1" != '}' ]; do case "$1" in - *.*.*.*) ip4=1 ;; *:*) ip6=1 ;; + *.*.*.*) ip4=1 ;; esac shift done |