commit
c5c199bc00
1 changed files with 4 additions and 4 deletions
|
@ -666,8 +666,8 @@ function get_status_by_address(self, addr)
|
||||||
end
|
end
|
||||||
|
|
||||||
function get_wannet(self)
|
function get_wannet(self)
|
||||||
local net = self:get_status_by_route("0.0.0.0", 0)
|
local net, stat = self:get_status_by_route("0.0.0.0", 0)
|
||||||
return net and network(net)
|
return net and network(net, stat.proto)
|
||||||
end
|
end
|
||||||
|
|
||||||
function get_wandev(self)
|
function get_wandev(self)
|
||||||
|
@ -676,8 +676,8 @@ function get_wandev(self)
|
||||||
end
|
end
|
||||||
|
|
||||||
function get_wan6net(self)
|
function get_wan6net(self)
|
||||||
local net = self:get_status_by_route("::", 0)
|
local net, stat = self:get_status_by_route("::", 0)
|
||||||
return net and network(net)
|
return net and network(net, stat.proto)
|
||||||
end
|
end
|
||||||
|
|
||||||
function get_wan6dev(self)
|
function get_wan6dev(self)
|
||||||
|
|
Loading…
Reference in a new issue