diff --git a/luci-app-passwall/Makefile b/luci-app-passwall/Makefile index 335e6282c..0cdb1ab43 100644 --- a/luci-app-passwall/Makefile +++ b/luci-app-passwall/Makefile @@ -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:= \ diff --git a/luci-app-passwall/luasrc/model/cbi/passwall/server/user.lua b/luci-app-passwall/luasrc/model/cbi/passwall/server/user.lua index f66cb5e43..703e11fe7 100644 --- a/luci-app-passwall/luasrc/model/cbi/passwall/server/user.lua +++ b/luci-app-passwall/luasrc/model/cbi/passwall/server/user.lua @@ -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") diff --git a/luci-app-passwall/luasrc/passwall/util_xray.lua b/luci-app-passwall/luasrc/passwall/util_xray.lua index 37aef62b0..a755601ea 100644 --- a/luci-app-passwall/luasrc/passwall/util_xray.lua +++ b/luci-app-passwall/luasrc/passwall/util_xray.lua @@ -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, diff --git a/luci-app-passwall/po/zh-cn/passwall.po b/luci-app-passwall/po/zh-cn/passwall.po index 1f20ff3aa..0af31cb2d 100644 --- a/luci-app-passwall/po/zh-cn/passwall.po +++ b/luci-app-passwall/po/zh-cn/passwall.po @@ -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 "目标协议"