mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
luci-app-v2ray-server: fix bugs (#3531)
This commit is contained in:
parent
16e45c19e6
commit
b16d0661b0
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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 = ""
|
||||
|
@ -22,6 +22,9 @@ msgstr "当勾选时,只能由本机访问此端口,当开启反向代理时
|
||||
msgid "Port"
|
||||
msgstr "端口"
|
||||
|
||||
msgid "User name"
|
||||
msgstr "用户名"
|
||||
|
||||
msgid "Password"
|
||||
msgstr "密码"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user