diff --git a/luci-app-passwall/Makefile b/luci-app-passwall/Makefile index ef7e3bbca..7868fe21b 100644 --- a/luci-app-passwall/Makefile +++ b/luci-app-passwall/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-passwall -PKG_VERSION:=4.75-3 +PKG_VERSION:=4.75-4 PKG_RELEASE:= PKG_CONFIG_DEPENDS:= \ diff --git a/luci-app-passwall/luasrc/model/cbi/passwall/client/acl_config.lua b/luci-app-passwall/luasrc/model/cbi/passwall/client/acl_config.lua index 4c9b6b5c0..e2ba61b92 100644 --- a/luci-app-passwall/luasrc/model/cbi/passwall/client/acl_config.lua +++ b/luci-app-passwall/luasrc/model/cbi/passwall/client/acl_config.lua @@ -140,17 +140,17 @@ sources.validate = function(self, value, t) end sources.write = dynamicList_write -local TCP_NODE = uci:get(appname, "@global[0]", "tcp_node") +--local TCP_NODE = uci:get(appname, "@global[0]", "tcp_node") tcp_node = s:option(ListValue, "tcp_node", "" .. translate("TCP Node") .. "") -tcp_node.default = "default" +tcp_node.default = "nil" tcp_node:value("nil", translate("Close")) -tcp_node:value("default", translate("Use global config") .. "(" .. TCP_NODE .. ")") +--tcp_node:value("default", translate("Use global config") .. "(" .. TCP_NODE .. ")") -local UDP_NODE = uci:get(appname, "@global[0]", "udp_node") +--local UDP_NODE = uci:get(appname, "@global[0]", "udp_node") udp_node = s:option(ListValue, "udp_node", "" .. translate("UDP Node") .. "") -udp_node.default = "default" +udp_node.default = "nil" udp_node:value("nil", translate("Close")) -udp_node:value("default", translate("Use global config") .. "(" .. UDP_NODE .. ")") +--udp_node:value("default", translate("Use global config") .. "(" .. UDP_NODE .. ")") udp_node:value("tcp", translate("Same as the tcp node")) for k, v in pairs(nodes_table) do @@ -257,6 +257,9 @@ o:value("disable", translate("No Proxy")) o:value("proxy", translate("Proxy")) o:depends({ udp_node = "nil", ['!reverse'] = true }) +o = s:option(DummyValue, "", " ") +o.template = appname .. "/global/proxy" + o = s:option(Flag, "filter_proxy_ipv6", translate("Filter Proxy Host IPv6"), translate("Experimental feature.")) o.default = "0" o:depends({ tcp_node = "nil", ['!reverse'] = true }) @@ -387,8 +390,10 @@ o.description = translate("The default DNS used when not in the domain name rule .. "
  • " .. translate("Remote DNS can avoid more DNS leaks, but some domestic domain names maybe to proxy!") .. "
  • " .. "
  • " .. translate("Direct DNS Internet experience may be better, but DNS will be leaked!") .. "
  • " .. "" +local _depends = {tcp_proxy_mode = "proxy"} if api.is_finded("chinadns-ng") then - o:depends("chinadns_ng", false) + _depends["chinadns_ng"] = false end +o:depends(_depends) return m diff --git a/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua b/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua index 117d7fa59..06f0912b7 100644 --- a/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua +++ b/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua @@ -463,6 +463,9 @@ localhost_udp_proxy_mode:value("disable", translate("No Proxy")) localhost_udp_proxy_mode:value("proxy", translate("Proxy")) localhost_udp_proxy_mode.default = "default" +o = s:taboption("Proxy", DummyValue, "", " ") +o.template = appname .. "/global/proxy" + tips = s:taboption("Proxy", DummyValue, "tips", " ") tips.rawhtml = true tips.cfgvalue = function(t, n) diff --git a/luci-app-passwall/luasrc/view/passwall/global/proxy.htm b/luci-app-passwall/luasrc/view/passwall/global/proxy.htm new file mode 100644 index 000000000..4e05f3336 --- /dev/null +++ b/luci-app-passwall/luasrc/view/passwall/global/proxy.htm @@ -0,0 +1,108 @@ +
    + +
    +
    + + + +
    +
    +
    + + diff --git a/luci-app-passwall/po/zh-cn/passwall.po b/luci-app-passwall/po/zh-cn/passwall.po index 4bffef374..fe2be6c9a 100644 --- a/luci-app-passwall/po/zh-cn/passwall.po +++ b/luci-app-passwall/po/zh-cn/passwall.po @@ -277,9 +277,6 @@ msgstr "GFW列表" msgid "Not China List" msgstr "中国列表以外" -msgid "Game Mode" -msgstr "游戏模式" - msgid "China List" msgstr "中国列表" @@ -292,12 +289,12 @@ msgstr "路由器本机" msgid "Same as the %s default proxy mode" msgstr "与 %s 默认代理模式相同" +msgid "Switch Mode" +msgstr "切换模式" + msgid "Want different devices to use different proxy modes/ports/nodes? Please use access control." msgstr "希望不同设备使用不同的代理模式/端口/节点?请使用访问控制。" -msgid "China list or gfwlist cannot be used together with outside China list!" -msgstr "中国列表不能和中国列表外或防火墙表一起使用!" - msgid "Operation" msgstr "操作"