mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[package] firewall: change the order of IPv4/IPv6 address detection, fixes mixed notation v6 improperly detected as v4 address
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21642 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user