fix: build trojan error

This commit is contained in:
cubemaze 2023-07-20 16:29:21 +08:00
parent 7a1be2e594
commit c1348ba3f4

View File

@ -173,6 +173,7 @@ func (c *Client) GetNodeInfo() (node *NodeInfo, err error) {
node.ServerKey = rsp.ServerKey
node.Cipher = rsp.Cipher
case "trojan":
node.Tls = true
case "hysteria":
rsp := HysteriaNodeRsp{}
err = json.Unmarshal(r.Body(), &rsp)