mirror of
https://github.com/XrayR-project/XrayR.git
synced 2025-06-08 13:29: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" {
|
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"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user