luci-app-v2ray-server: fix bugs (#3531)

This commit is contained in:
caicaicai21 2020-03-04 14:43:51 +08:00 committed by GitHub
parent 16e45c19e6
commit b16d0661b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 4 deletions

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 "密码"