projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update network.lua
[project/luci.git]
/
modules
/
luci-base
/
luasrc
/
model
/
network.lua
diff --git
a/modules/luci-base/luasrc/model/network.lua
b/modules/luci-base/luasrc/model/network.lua
index
81fc416
..
741daa4
100644
(file)
--- a/
modules/luci-base/luasrc/model/network.lua
+++ b/
modules/luci-base/luasrc/model/network.lua
@@
-666,8
+666,8
@@
function get_status_by_address(self, addr)
end
function get_wannet(self)
end
function get_wannet(self)
- local net = self:get_status_by_route("0.0.0.0", 0)
- return net and network(net)
+ local net
, stat
= self:get_status_by_route("0.0.0.0", 0)
+ return net and network(net
, stat.proto
)
end
function get_wandev(self)
end
function get_wandev(self)
@@
-676,8
+676,8
@@
function get_wandev(self)
end
function get_wan6net(self)
end
function get_wan6net(self)
- local net = self:get_status_by_route("::", 0)
- return net and network(net)
+ local net
, stat
= self:get_status_by_route("::", 0)
+ return net and network(net
, stat.proto
)
end
function get_wan6dev(self)
end
function get_wan6dev(self)