mirror of https://github.com/kenzok8/small.git
update 2024-06-28 04:11:35
This commit is contained in:
parent
550704d905
commit
849e82483f
|
@ -622,6 +622,7 @@ o:value("tcp", "TCP")
|
||||||
o:value("kcp", "mKCP")
|
o:value("kcp", "mKCP")
|
||||||
o:value("ws", "WebSocket")
|
o:value("ws", "WebSocket")
|
||||||
o:value("httpupgrade", "HTTPUpgrade")
|
o:value("httpupgrade", "HTTPUpgrade")
|
||||||
|
o:value("splithttp", "SplitHTTP")
|
||||||
o:value("h2", "HTTP/2")
|
o:value("h2", "HTTP/2")
|
||||||
o:value("quic", "QUIC")
|
o:value("quic", "QUIC")
|
||||||
o:value("grpc", "gRPC")
|
o:value("grpc", "gRPC")
|
||||||
|
@ -690,6 +691,18 @@ o = s:option(Value, "httpupgrade_path", translate("Httpupgrade Path"))
|
||||||
o:depends("transport", "httpupgrade")
|
o:depends("transport", "httpupgrade")
|
||||||
o.rmempty = true
|
o.rmempty = true
|
||||||
|
|
||||||
|
-- [[ splithttp部分 ]]--
|
||||||
|
|
||||||
|
-- splithttp域名
|
||||||
|
o = s:option(Value, "splithttp_host", translate("Splithttp Host"))
|
||||||
|
o:depends({transport = "splithttp", tls = false})
|
||||||
|
o.rmempty = true
|
||||||
|
|
||||||
|
-- splithttp路径
|
||||||
|
o = s:option(Value, "splithttp_path", translate("Splithttp Path"))
|
||||||
|
o:depends("transport", "splithttp")
|
||||||
|
o.rmempty = true
|
||||||
|
|
||||||
-- [[ H2部分 ]]--
|
-- [[ H2部分 ]]--
|
||||||
|
|
||||||
-- H2域名
|
-- H2域名
|
||||||
|
|
|
@ -876,6 +876,12 @@ msgstr "HTTPUpgrade 主机名"
|
||||||
msgid "Httpupgrade Path"
|
msgid "Httpupgrade Path"
|
||||||
msgstr "HTTPUpgrade 路径"
|
msgstr "HTTPUpgrade 路径"
|
||||||
|
|
||||||
|
msgid "Splithttp Host"
|
||||||
|
msgstr "SplitHTTP 主机名"
|
||||||
|
|
||||||
|
msgid "Splithttp Path"
|
||||||
|
msgstr "SplitHTTP 路径"
|
||||||
|
|
||||||
msgid "HTTP/2 Host"
|
msgid "HTTP/2 Host"
|
||||||
msgstr "HTTP/2 主机名"
|
msgstr "HTTP/2 主机名"
|
||||||
|
|
||||||
|
|
|
@ -235,6 +235,11 @@ local Xray = {
|
||||||
host = (server.httpupgrade_host or server.tls_host) or nil,
|
host = (server.httpupgrade_host or server.tls_host) or nil,
|
||||||
path = server.httpupgrade_path or ""
|
path = server.httpupgrade_path or ""
|
||||||
} or nil,
|
} or nil,
|
||||||
|
splithttpSettings = (server.transport == "splithttp") and {
|
||||||
|
-- splithttp
|
||||||
|
host = (server.splithttp_host or server.tls_host) or nil,
|
||||||
|
path = server.splithttp_path or ""
|
||||||
|
} or nil,
|
||||||
httpSettings = (server.transport == "h2") and {
|
httpSettings = (server.transport == "h2") and {
|
||||||
-- h2
|
-- h2
|
||||||
path = server.h2_path or "",
|
path = server.h2_path or "",
|
||||||
|
|
Loading…
Reference in New Issue