diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-05-30 23:49:47 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-05-30 23:49:47 +0000 |
commit | 864132cf2c7bc1693c35cf625c81f16f27fb2f9f (patch) | |
tree | 09f8a46f20193eb093641883100835aa83097ebf /package/firewall/files/lib/config.sh | |
parent | d156518f0872807bfde07b1948e9426f1f3b6dac (diff) | |
download | upstream-864132cf2c7bc1693c35cf625c81f16f27fb2f9f.tar.gz upstream-864132cf2c7bc1693c35cf625c81f16f27fb2f9f.tar.bz2 upstream-864132cf2c7bc1693c35cf625c81f16f27fb2f9f.zip |
[package] firewall: fix support for netranges in redirect and rule sections
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21640 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/firewall/files/lib/config.sh')
-rw-r--r-- | package/firewall/files/lib/config.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/firewall/files/lib/config.sh b/package/firewall/files/lib/config.sh index 1c5e030961..c21391266a 100644 --- a/package/firewall/files/lib/config.sh +++ b/package/firewall/files/lib/config.sh @@ -87,8 +87,8 @@ config_get_ipaddr() { local vers= case "$addr" in - *.*) vers=4 ;; - *:*) vers=6 ;; + *.*) vers=4; mask="${mask:-32}" ;; + *:*) vers=6; mask="${mask:-128}" ;; esac export ${NO_EXPORT:+-n} -- "${varn}=${addr}" |