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
commit 7cc57fe2ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)