projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a9db1f2
)
libs/core: ensure that luci.model.network.network._ip() always returns a table if...
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 20 Feb 2011 14:42:35 +0000
(14:42 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 20 Feb 2011 14:42:35 +0000
(14:42 +0000)
libs/core/luasrc/model/network.lua
patch
|
blob
|
history
diff --git
a/libs/core/luasrc/model/network.lua
b/libs/core/luasrc/model/network.lua
index
911d2a7
..
3c09648
100644
(file)
--- a/
libs/core/luasrc/model/network.lua
+++ b/
libs/core/luasrc/model/network.lua
@@
-478,7
+478,7
@@
end
function network._ip(self, opt, family, list)
local ip = uci_s:get("network", self.sid, opt)
local fc = (family == 6) and ipc.IPv6 or ipc.IPv4
- if ip then
+ if ip
or list
then
if list then
local l = { }
for ip in utl.imatch(ip) do