projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a27c539
)
modules/admin-core: implement a more elegant solution for #46; treat empty or zero...
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 27 Jan 2009 17:15:14 +0000
(17:15 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 27 Jan 2009 17:15:14 +0000
(17:15 +0000)
modules/admin-core/luasrc/tools/webadmin.lua
patch
|
blob
|
history
diff --git
a/modules/admin-core/luasrc/tools/webadmin.lua
b/modules/admin-core/luasrc/tools/webadmin.lua
index 62168ebb70e0809ca15a0f3c1500217d9e6bb82e..0e09be9800cba08f742e7591d53b400b24ae39fc 100644
(file)
--- 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