mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 12:40:11 +00:00
尝试添加trojan的ws/grpc传输
This commit is contained in:
@@ -94,7 +94,11 @@ type ShadowsocksNode struct {
|
||||
ServerKey string `json:"server_key"`
|
||||
}
|
||||
|
||||
type TrojanNode CommonNode
|
||||
type TrojanNode struct {
|
||||
CommonNode
|
||||
Network string `json:"network"`
|
||||
NetworkSettings json.RawMessage `json:"networkSettings"`
|
||||
}
|
||||
|
||||
type HysteriaNode struct {
|
||||
CommonNode
|
||||
@@ -188,7 +192,7 @@ func (c *Client) GetNodeInfo() (node *NodeInfo, err error) {
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("decode trojan params error: %s", err)
|
||||
}
|
||||
cm = (*CommonNode)(rsp)
|
||||
cm = &rsp.CommonNode
|
||||
node.Trojan = rsp
|
||||
node.Security = Tls
|
||||
case "hysteria":
|
||||
|
||||
Reference in New Issue
Block a user