luci-app-openclash: sync with upstream source

This commit is contained in:
CN_SZTL 2020-03-05 19:06:05 +08:00
parent 705f3bd799
commit 40f3699ca4
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -88,7 +88,7 @@ local function ConnersHua_return()
end
local function daip()
return luci.sys.exec("uci get network.lan.ipaddr 2>/dev/null |awk -F '/' '{print $1}' 2>/dev/null |tr -d '\n'")
return luci.sys.exec("ifstatus lan 2>/dev/null |jsonfilter -e '@[\"ipv4-address\"][0].address' 2>/dev/null")
end
local function dase()
@ -269,4 +269,3 @@ function action_download_rule()
luci.http.write_json({
game_rule_download_status = download_rule();
})
end