Skip to content

Commit

Permalink
增加trojan自定义网络协议与加密方式
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuzi authored Aug 16, 2022
1 parent fc9cb4a commit 5d6eeb4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions api/sspanel/sspanel.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit 5d6eeb4

Please sign in to comment.