Merge pull request #97 from stitchrs/dev_trojan

fix: trojan build error
This commit is contained in:
Yuzuki
2023-07-20 20:05:06 +08:00
committed by GitHub

View File

@@ -207,6 +207,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)