luci: server remove mtproto protocol

This commit is contained in:
xiaorouji 2023-08-11 20:19:08 +08:00 committed by sbwml
parent d57634e73d
commit 83cc9913f5
4 changed files with 1 additions and 24 deletions

View File

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-passwall2
PKG_VERSION:=1.17-3
PKG_VERSION:=1.17-4
PKG_RELEASE:=
PKG_CONFIG_DEPENDS:= \

View File

@ -97,7 +97,6 @@ protocol:value("http", "HTTP")
protocol:value("socks", "Socks")
protocol:value("shadowsocks", "Shadowsocks")
protocol:value("trojan", "Trojan")
protocol:value("mtproto", "MTProto")
protocol:value("dokodemo-door", "dokodemo-door")
protocol:depends("type", "V2ray")
protocol:depends("type", "Xray")
@ -150,17 +149,6 @@ password:depends("type", "Brook")
password:depends({ type = "V2ray", protocol = "shadowsocks" })
password:depends({ type = "Xray", protocol = "shadowsocks" })
mtproto_password = s:option(Value, "mtproto_password", translate("Password"), translate("The MTProto protocol must be 32 characters and can only contain characters from 0 to 9 and a to f."))
mtproto_password:depends({ type = "V2ray", protocol = "mtproto" })
mtproto_password:depends({ type = "Xray", protocol = "mtproto" })
mtproto_password.default = arg[1]
function mtproto_password.cfgvalue(self, section)
return m:get(section, "password")
end
function mtproto_password.write(self, section, value)
m:set(section, "password", value)
end
d_protocol = s:option(ListValue, "d_protocol", translate("Destination protocol"))
d_protocol:value("tcp", "TCP")
d_protocol:value("udp", "UDP")

View File

@ -317,14 +317,6 @@ function gen_config_server(node)
clients = clients
}
end
elseif node.protocol == "mtproto" then
settings = {
users = {
{
secret = (node.password == nil) and "" or node.password
}
}
}
elseif node.protocol == "dokodemo-door" then
settings = {
network = node.d_protocol,

View File

@ -1150,9 +1150,6 @@ msgstr "显示节点检测"
msgid "Show Show IP111"
msgstr "显示IP111"
msgid "The MTProto protocol must be 32 characters and can only contain characters from 0 to 9 and a to f."
msgstr "MTProto 协议必须为 32 个字符,仅可包含 0 到 9 和 a 到 f 之间的字符。"
msgid "Destination protocol"
msgstr "目标协议"