mt_wifi lua detect wanif name not null (#5748)
This commit is contained in:
parent
bb19d14f40
commit
047d6ea928
@ -26,7 +26,7 @@ end
|
||||
function add_vif_into_lan(vif)
|
||||
local mtkwifi = require("mtkwifi")
|
||||
local wanif = mtkwifi.__trim(mtkwifi.read_pipe("uci get network.wan.ifname"))
|
||||
if (string.match(vif, wanif)) then
|
||||
if ('' ~= wanif and string.match(vif, wanif)) then
|
||||
return
|
||||
end
|
||||
local brvifs = mtkwifi.__trim(
|
||||
|
Loading…
x
Reference in New Issue
Block a user