mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 07:46:48 +00:00
firewall: fix rule generation for v4 or v6 only zones (#8955)
SVN-Revision: 25813
This commit is contained in:
parent
a37fc00aef
commit
1ca64678bb
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2008-2010 OpenWrt.org
|
||||
# Copyright (C) 2008-2011 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
PKG_NAME:=firewall
|
||||
|
||||
PKG_VERSION:=2
|
||||
PKG_RELEASE:=21
|
||||
PKG_RELEASE:=22
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user