Update patch-luci-app-passwall.patch
This commit is contained in:
parent
b5ab8a0a18
commit
6e6310eb38
@ -112,7 +112,7 @@ index e202ccd..3c99e2e 100644
|
|||||||
o:value("9.9.9.9", "9.9.9.9 (Quad9-Recommended)")
|
o:value("9.9.9.9", "9.9.9.9 (Quad9-Recommended)")
|
||||||
o:value("208.67.220.220", "208.67.220.220 (OpenDNS)")
|
o:value("208.67.220.220", "208.67.220.220 (OpenDNS)")
|
||||||
o:value("208.67.222.222", "208.67.222.222 (OpenDNS)")
|
o:value("208.67.222.222", "208.67.222.222 (OpenDNS)")
|
||||||
+if nixio.fs.access("/usr/share/mosdns/default.yaml") then
|
+if nixio.fs.access("/usr/share/mosdns/mosdns.sh") then
|
||||||
+ local mosdns_port = string.gsub(luci.sys.exec("uci -q get mosdns.config.listen_port"), "\n", "")
|
+ local mosdns_port = string.gsub(luci.sys.exec("uci -q get mosdns.config.listen_port"), "\n", "")
|
||||||
+ if mosdns_port ~= nil and result ~= "" then
|
+ if mosdns_port ~= nil and result ~= "" then
|
||||||
+ o:value("127.0.0.1:" .. mosdns_port, "127.0.0.1:" .. mosdns_port .. " (MosDNS)")
|
+ o:value("127.0.0.1:" .. mosdns_port, "127.0.0.1:" .. mosdns_port .. " (MosDNS)")
|
||||||
|
Loading…
Reference in New Issue
Block a user