增加trojan自定义网络协议与加密方式

This commit is contained in:
qiuzi 2022-08-16 16:03:21 +08:00 committed by GitHub
parent fc9cb4ac10
commit 5d6eeb4f29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -774,14 +774,17 @@ func (c *APIClient) ParseSSPanelNodeInfo(nodeInfoResponse *NodeInfoResponse) (*a
} }
if c.NodeType == "Trojan" { if c.NodeType == "Trojan" {
EnableTLS = true transportProtocol = nodeConfig.Network
TLSType = "tls" TLSType = nodeConfig.Security
if nodeConfig.Grpc == "1" { if nodeConfig.Grpc == "1" {
transportProtocol = "grpc" transportProtocol = "grpc"
EnableTLS = true
TLSType = "tls"
} else { } else {
transportProtocol = "tcp" transportProtocol = "tcp"
EnableTLS = true
TLSType = "tls"
} }
if nodeConfig.EnableXtls == "1" { if nodeConfig.EnableXtls == "1" {
TLSType = "xtls" TLSType = "xtls"
} }