mt_wifi lua detect wanif name not null

This commit is contained in:
acooler15 2020-11-08 17:06:51 +08:00 committed by CN_SZTL
parent ab3537894a
commit d10b88dd35
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -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(