network: fix stun when disable wifi

This commit is contained in:
coolsnowwolf 2020-07-03 23:50:27 +08:00
parent da60000575
commit b9fb9da50a

View File

@ -1598,7 +1598,7 @@ end
function wifinet.channel(self)
return self.iwinfo.channel or self:ubus("dev", "config", "channel") or
tonumber(self:get("channel"))
tonumber(self:get("channel") or "")
end
function wifinet.signal(self)