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.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/firewall/files/lib/config.sh b/package/firewall/files/lib/config.sh
index c21391266a..996cef884d 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; mask="${mask:-32}" ;;
*:*) vers=6; mask="${mask:-128}" ;;
+ *.*) vers=4; mask="${mask:-32}" ;;
esac
export ${NO_EXPORT:+-n} -- "${varn}=${addr}"