mirror of
https://github.com/XrayR-project/XrayR.git
synced 2025-06-08 05:19:54 +00:00
增加trojan自定义网络协议与加密方式
This commit is contained in:
parent
fc9cb4ac10
commit
5d6eeb4f29
@ -774,14 +774,17 @@ func (c *APIClient) ParseSSPanelNodeInfo(nodeInfoResponse *NodeInfoResponse) (*a
|
||||
}
|
||||
|
||||
if c.NodeType == "Trojan" {
|
||||
EnableTLS = true
|
||||
TLSType = "tls"
|
||||
transportProtocol = nodeConfig.Network
|
||||
TLSType = nodeConfig.Security
|
||||
if nodeConfig.Grpc == "1" {
|
||||
transportProtocol = "grpc"
|
||||
EnableTLS = true
|
||||
TLSType = "tls"
|
||||
} else {
|
||||
transportProtocol = "tcp"
|
||||
EnableTLS = true
|
||||
TLSType = "tls"
|
||||
}
|
||||
|
||||
if nodeConfig.EnableXtls == "1" {
|
||||
TLSType = "xtls"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user