update-01.13
This commit is contained in:
parent
e95657e87b
commit
0c436f9b74
|
@ -362,7 +362,7 @@ localhost_udp_proxy_mode.validate = redir_mode_validate
|
|||
tips = s:taboption("Proxy", DummyValue, "tips", " ")
|
||||
tips.rawhtml = true
|
||||
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
|
||||
|
||||
s:tab("log", translate("Log"))
|
||||
|
@ -387,10 +387,10 @@ trojan_loglevel:value("2", "warn")
|
|||
trojan_loglevel:value("3", "error")
|
||||
trojan_loglevel:value("4", "fatal")
|
||||
|
||||
s:tab("tips", translate("Tips"))
|
||||
s:tab("faq", "FAQ")
|
||||
|
||||
o = s:taboption("tips", DummyValue, "")
|
||||
o.template = appname .. "/global/tips"
|
||||
o = s:taboption("faq", DummyValue, "")
|
||||
o.template = appname .. "/global/faq"
|
||||
|
||||
-- [[ Socks Server ]]--
|
||||
o = s:taboption("Main", Flag, "socks_enabled", "Socks " .. translate("Main switch"))
|
||||
|
|
|
@ -2,7 +2,15 @@
|
|||
local api = require "luci.model.cbi.passwall.api.api"
|
||||
-%>
|
||||
<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>
|
||||
|
||||
<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) {
|
||||
var li = "";
|
||||
li += "<%:You can use load balancing for failover.%>" + "<br />";
|
|
@ -220,8 +220,20 @@ msgstr "如果修改规则后没有生效,请尝试此功能。"
|
|||
msgid "The server client can also use this rule to scientifically surf the Internet."
|
||||
msgstr "本机服务器的客户端也可以使用这个代理模式上网。"
|
||||
|
||||
msgid "Tips"
|
||||
msgstr "小提示"
|
||||
msgid "About DNS issues:"
|
||||
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."
|
||||
msgstr "可以使用负载均衡实现故障切换功能。"
|
||||
|
|
|
@ -1183,7 +1183,7 @@ gen_pdnsd_config() {
|
|||
max_ttl = 1w;
|
||||
timeout = 10;
|
||||
par_queries = 2;
|
||||
neg_domain_pol = on;
|
||||
neg_domain_pol = off;
|
||||
udpbufsize = 1024;
|
||||
proc_limit = 2;
|
||||
procq_limit = 8;
|
||||
|
|
Loading…
Reference in New Issue