luci-app-flowoffload: fix "unknown operand"

This commit is contained in:
CN_SZTL 2020-07-07 23:58:38 +08:00
parent 3711af2eb0
commit 545bd7cb86
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -25,7 +25,7 @@ local function is_fullcone()
end
local function is_dns()
return luci.sys.call("[ `uci get flowoffload.@flow[0].dnscache_enable 2>/dev/null` -ne 3 ] && pgrep dnscache >/dev/null || pgrep AdGuardHome >/dev/null") == 0
return luci.sys.call("[ x$(uci get flowoffload.@flow[0].dnscache_enable 2>/dev/null) != x3 ] && pgrep dnscache >/dev/null || pgrep AdGuardHome >/dev/null") == 0
end
local function is_ad()