aboutsummaryrefslogtreecommitdiffstats
path: root/package/firewall/files/lib/config.sh
diff options
context:
space:
mode:
Diffstat (limited to 'package/firewall/files/lib/config.sh')
-rw-r--r--package/firewall/files/lib/config.sh4
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}"