update-01.13

This commit is contained in:
github-actions[bot] 2022-01-13 20:33:54 +08:00
parent e95657e87b
commit 0c436f9b74
4 changed files with 29 additions and 9 deletions

View File

@ -362,7 +362,7 @@ localhost_udp_proxy_mode.validate = redir_mode_validate
tips = s:taboption("Proxy", DummyValue, "tips", " ") tips = s:taboption("Proxy", DummyValue, "tips", " ")
tips.rawhtml = true tips.rawhtml = true
tips.cfgvalue = function(t, n) tips.cfgvalue = function(t, n)
return string.format('<a style="color: red" href="acl">%s</a>', translate("Want different devices to use different proxy modes/ports/nodes? Please use access control.")) return string.format('<a style="color: red" href="%s">%s</a>', api.url("acl"), translate("Want different devices to use different proxy modes/ports/nodes? Please use access control."))
end end
s:tab("log", translate("Log")) s:tab("log", translate("Log"))
@ -387,10 +387,10 @@ trojan_loglevel:value("2", "warn")
trojan_loglevel:value("3", "error") trojan_loglevel:value("3", "error")
trojan_loglevel:value("4", "fatal") trojan_loglevel:value("4", "fatal")
s:tab("tips", translate("Tips")) s:tab("faq", "FAQ")
o = s:taboption("tips", DummyValue, "") o = s:taboption("faq", DummyValue, "")
o.template = appname .. "/global/tips" o.template = appname .. "/global/faq"
-- [[ Socks Server ]]-- -- [[ Socks Server ]]--
o = s:taboption("Main", Flag, "socks_enabled", "Socks " .. translate("Main switch")) o = s:taboption("Main", Flag, "socks_enabled", "Socks " .. translate("Main switch"))

View File

@ -2,7 +2,15 @@
local api = require "luci.model.cbi.passwall.api.api" local api = require "luci.model.cbi.passwall.api.api"
-%> -%>
<div class="cbi-section cbi-tblsection"> <div class="cbi-section cbi-tblsection">
<div id="tips_div"></div> <div id="dns_div">
<ul><b style="color:red"><%:About DNS issues:%></b>
<li style="color:red">1. <span><%:Some browsers may have built-in DNS, be sure to close. Example: Chrome. Settings - Security and Privacy - Security - Use secure DNS disabled.%></span></li>
<li style="color:red">2. <span><%:Sometimes after restart, you can not internet, especially the GFW mode. At this time, close all browsers (important), Windows Client, please `ipconfig / flushdns`. Please close the WiFi on the phone, cut the flight mode and then cut back.%></span></li>
<li style="color:red">3. <span><%:The client DNS and the default gateway must point to this router.%></span></li>
<li style="color:red">4. <span><%:If you have a wrong DNS process, the consequences are at your own risk!%></span></li>
</ul>
</div>
<div id="div2"></div>
</div> </div>
<script> <script>
@ -23,7 +31,7 @@ local api = require "luci.model.cbi.passwall.api.api"
} }
} }
var dom = document.getElementById("tips_div"); var dom = document.getElementById("div2");
if (dom) { if (dom) {
var li = ""; var li = "";
li += "<%:You can use load balancing for failover.%>" + "<br />"; li += "<%:You can use load balancing for failover.%>" + "<br />";

View File

@ -220,8 +220,20 @@ msgstr "如果修改规则后没有生效,请尝试此功能。"
msgid "The server client can also use this rule to scientifically surf the Internet." msgid "The server client can also use this rule to scientifically surf the Internet."
msgstr "本机服务器的客户端也可以使用这个代理模式上网。" msgstr "本机服务器的客户端也可以使用这个代理模式上网。"
msgid "Tips" msgid "About DNS issues:"
msgstr "小提示" msgstr "关于DNS问题"
msgid "Some browsers may have built-in DNS, be sure to close. Example: Chrome. Settings - Security and Privacy - Security - Use secure DNS disabled."
msgstr "部分浏览器可能有内置的DNS请务必关闭。如chrome。 设置 - 安全和隐私设置 - 使用安全 DNS 关闭。"
msgid "Sometimes after restart, you can not internet, especially the GFW mode. At this time, close all browsers (important), Windows Client, please `ipconfig / flushdns`. Please close the WiFi on the phone, cut the flight mode and then cut back."
msgstr "有时候重启后上不了尤其是GFW模式。这时请先关闭所有浏览器重要Windows客户端请`ipconfig/flushdns`。手机端请关闭WIFI切一下飞行模式再切回来。"
msgid "The client DNS and the default gateway must point to this router."
msgstr "客户端DNS和默认网关必须指向本路由器。"
msgid "If you have a wrong DNS process, the consequences are at your own risk!"
msgstr "如果你自行配置了错误的DNS流程后果自负"
msgid "You can use load balancing for failover." msgid "You can use load balancing for failover."
msgstr "可以使用负载均衡实现故障切换功能。" msgstr "可以使用负载均衡实现故障切换功能。"

View File

@ -1183,7 +1183,7 @@ gen_pdnsd_config() {
max_ttl = 1w; max_ttl = 1w;
timeout = 10; timeout = 10;
par_queries = 2; par_queries = 2;
neg_domain_pol = on; neg_domain_pol = off;
udpbufsize = 1024; udpbufsize = 1024;
proc_limit = 2; proc_limit = 2;
procq_limit = 8; procq_limit = 8;