diff options
author | Jo-Philipp Wich <jo@mein.io> | 2016-04-01 14:31:10 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2016-04-01 14:31:10 +0200 |
commit | c5c199bc00108c7488c3d68f4ee6a7ebb28c0b54 (patch) | |
tree | beb1b29d95c8d31ed0a0b61a3b3170bd7b621c8a /modules/luci-base/luasrc/model | |
parent | 75b462fe469be1d7434f65af7b6aab9e1a7da6c2 (diff) | |
parent | 57e58b9bf9e9bbf4eeed0daf0515280376d7e611 (diff) |
Merge pull request #692 from oskarirauta/master
Update network.lua
Diffstat (limited to 'modules/luci-base/luasrc/model')
-rw-r--r-- | modules/luci-base/luasrc/model/network.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/luci-base/luasrc/model/network.lua b/modules/luci-base/luasrc/model/network.lua index 81fc416fed..741daa4816 100644 --- 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) - 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) @@ -676,8 +676,8 @@ function get_wandev(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) |