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 | e25fbfccdf8c5650fbb697e5d5e6028d36738a22 (patch) | |
tree | dbf66b795bba989bc534103f08e3794ecf800ef1 /package/firewall/files/lib/config.sh | |
parent | 261d41a906a8afa3d8167b091ac0b891217d8251 (diff) | |
download | mtk-20170518-e25fbfccdf8c5650fbb697e5d5e6028d36738a22.zip mtk-20170518-e25fbfccdf8c5650fbb697e5d5e6028d36738a22.tar.gz mtk-20170518-e25fbfccdf8c5650fbb697e5d5e6028d36738a22.tar.bz2 |
firewall: fix support for netranges in redirect and rule sections
SVN-Revision: 21640
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 1c5e030..c213912 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}" |