未验证 提交 bcbce88a 编写于 作者: X xydche 提交者: GitHub

fix v2ray-server tcpsettings (#5820)

修复传输方式为tcp时,http伪装不生效的问题。
上级 73e554da
...@@ -92,6 +92,17 @@ local v2ray = { ...@@ -92,6 +92,17 @@ local v2ray = {
} }
} }
} or nil, } or nil,
tcpSettings = (server.transport == "tcp") and {
header = {
type = server.tcp_guise,
request = {
path = server.tcp_guise_http_path,
headers = {
Host = server.tcp_guise_http_host
}
}
}
} or nil,
kcpSettings = (server.transport == "mkcp") and { kcpSettings = (server.transport == "mkcp") and {
mtu = tonumber(server.mkcp_mtu), mtu = tonumber(server.mkcp_mtu),
tti = tonumber(server.mkcp_tti), tti = tonumber(server.mkcp_tti),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册