summaryrefslogtreecommitdiff
path: root/modules/admin-core
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-01-27 17:15:58 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-01-27 17:15:58 +0000
commitaa5a88985d3a634a02f8af4e1f67a41d6a613119 (patch)
tree3164e09aa7fcd1ad8b628660ecdd12e8d1a6b2c4 /modules/admin-core
parent1b460753ad7df8e0293d44e9cec1ecc7613fcf75 (diff)
Merge r4168
Diffstat (limited to 'modules/admin-core')
-rw-r--r--modules/admin-core/luasrc/tools/webadmin.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/admin-core/luasrc/tools/webadmin.lua b/modules/admin-core/luasrc/tools/webadmin.lua
index 62168ebb70..0e09be9800 100644
--- a/modules/admin-core/luasrc/tools/webadmin.lua
+++ b/modules/admin-core/luasrc/tools/webadmin.lua
@@ -66,7 +66,9 @@ function network_get_addresses(net)
local mav4 = state:get("network", net, "netmask")
local ipv6 = state:get("network", net, "ip6addr")
- if ipv4 and mav4 and #ipv4 > 0 and #mav4 > 0 then
+ if ipv4 and #ipv4 > 0 then
+ if mav4 and #mav4 == 0 then mav4 = nil end
+
ipv4 = luci.ip.IPv4(ipv4, mav4)
if ipv4 then