aboutsummaryrefslogtreecommitdiffstats
path: root/package/firewall/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-03-01 18:04:14 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-03-01 18:04:14 +0000
commit1ca64678bbb0eff352c6624cf7bf77f57f494bc9 (patch)
tree9ef865bc2f8429ba302dda7f8125f5ec1425e306 /package/firewall/files
parenta37fc00aef54b253073063756a39971fdbf6e8c3 (diff)
downloadupstream-1ca64678bbb0eff352c6624cf7bf77f57f494bc9.tar.gz
upstream-1ca64678bbb0eff352c6624cf7bf77f57f494bc9.tar.bz2
upstream-1ca64678bbb0eff352c6624cf7bf77f57f494bc9.zip
firewall: fix rule generation for v4 or v6 only zones (#8955)
SVN-Revision: 25813
Diffstat (limited to 'package/firewall/files')
-rw-r--r--package/firewall/files/lib/core_interface.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/firewall/files/lib/core_interface.sh b/package/firewall/files/lib/core_interface.sh
index f08975952c..aff6641807 100644
--- a/package/firewall/files/lib/core_interface.sh
+++ b/package/firewall/files/lib/core_interface.sh
@@ -70,6 +70,9 @@ fw_configure_interface() {
# Need v4 while zone is v6
*/*.*) fw_log info "zone $zone does not support IPv4 address family, skipping"; return ;;
+
+ # Strip prefix
+ *) mode="${mode#G}" ;;
esac
lock /var/run/firewall-interface.lock