firewall: fix rule generation for v4 or v6 only zones (#8955)

SVN-Revision: 25813
This commit is contained in:
Jo-Philipp Wich
2011-03-01 18:04:14 +00:00
parent a37fc00aef
commit 1ca64678bb
2 changed files with 5 additions and 2 deletions

View File

@@ -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