luci: server remove mtproto protocol

This commit is contained in:
xiaorouji 2023-08-11 02:15:32 +08:00 committed by sbwml
parent c2010b482d
commit f6c85ff182
4 changed files with 1 additions and 24 deletions

View File

@ -6,7 +6,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-passwall
PKG_VERSION:=4.67-2
PKG_VERSION:=4.67-3
PKG_RELEASE:=
PKG_CONFIG_DEPENDS:= \

View File

@ -111,7 +111,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")
@ -165,17 +164,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

@ -321,14 +321,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

@ -1246,9 +1246,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 "目标协议"