Merge Lean's source

This commit is contained in:
CN_SZTL
2020-03-04 15:01:37 +08:00
parent 88f8a3b85f
commit e519ba00a2
8 changed files with 8576 additions and 14341 deletions

View File

@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-ssr-plus
PKG_VERSION:=159
PKG_RELEASE:=2
PKG_RELEASE:=5
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)

View File

@@ -74,11 +74,7 @@ local set =luci.http.formvalue("set")
local icount =0
if set == "gfw_data" then
if nixio.fs.access("/usr/bin/wget-ssl") then
refresh_cmd="wget-ssl --no-check-certificate https://cdn.jsdelivr.net/gh/gfwlist/gfwlist/gfwlist.txt -O /tmp/gfw.b64"
else
refresh_cmd="wget -O /tmp/gfw.b64 http://iytc.net/tools/list.b64"
end
sret=luci.sys.call(refresh_cmd .. " 2>/dev/null")
if sret== 0 then
luci.sys.call("/usr/bin/ssr-gfw")
@@ -87,6 +83,8 @@ if nixio.fs.access("/usr/bin/wget-ssl") then
oldcount=luci.sys.exec("cat /etc/dnsmasq.ssr/gfw_list.conf | wc -l")
if tonumber(icount) ~= tonumber(oldcount) then
luci.sys.exec("cp -f /tmp/gfwnew.txt /etc/dnsmasq.ssr/gfw_list.conf")
luci.sys.exec("cp -f /etc/dnsmasq.ssr/gfw_list.conf /tmp/dnsmasq.ssr/gfw_list.conf")
luci.sys.call("/etc/init.d/dnsmasq restart")
retstring=tostring(math.ceil(tonumber(icount)/2))
else
retstring ="0"

View File

@@ -407,7 +407,7 @@ msgid "Anti-pollution DNS Server"
msgstr "访问国外域名DNS服务器"
msgid "Custom DNS Server format as IP:PORT (default: 8.8.4.4:53)"
msgstr "自定义国外域名DNS服务器格式为 IP:PORT (默认: 8.8.4.4:53)"
msgstr "格式为 IP:PORT (默认: 8.8.4.4:53)"
msgid "Use Pdnsd tcp query and cache"
msgstr "使用PDNSD TCP查询并缓存"

File diff suppressed because it is too large Load Diff

View File

@@ -36,10 +36,10 @@ elseif server.protocol == "http" then
allowTransparent = false,
accounts = {
{
user = (server.socks_username == nil) and "" or
server.socks_username,
pass = (server.socks_password == nil) and "" or
server.socks_password
user = (server.http_username == nil) and "" or
server.http_username,
pass = (server.http_password == nil) and "" or
server.http_password
}
}
}

View File

@@ -87,6 +87,8 @@ e.cfgvalue = function(self, section)
e = "ss_password"
elseif protocol == "socks" then
e = "socks_password"
elseif protocol == "http" then
e = "http_password"
end
local e = m:get(section, e) or ""
local t = ""

View File

@@ -22,6 +22,9 @@ msgstr "当勾选时,只能由本机访问此端口,当开启反向代理时
msgid "Port"
msgstr "端口"
msgid "User name"
msgstr "用户名"
msgid "Password"
msgstr "密码"