mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 18:08:14 -05:00
chore: adjust method of private key generation
This commit is contained in:
parent
438bcc3361
commit
da919666a8
@ -193,8 +193,7 @@ func (c *Client) GetNodeInfo() (node *NodeInfo, err error) {
|
|||||||
if node.ExtraConfig.RealityConfig == nil {
|
if node.ExtraConfig.RealityConfig == nil {
|
||||||
node.ExtraConfig.EnableReality = "false"
|
node.ExtraConfig.EnableReality = "false"
|
||||||
} else {
|
} else {
|
||||||
key := crypt.GenX25519Private([]byte(strconv.Itoa(c.NodeId) + c.NodeType + c.Token +
|
key := crypt.GenX25519Private([]byte(strconv.Itoa(c.NodeId) + c.NodeType + c.Token))
|
||||||
node.ExtraConfig.RealityConfig.PrivateKey))
|
|
||||||
node.ExtraConfig.RealityConfig.PrivateKey = base64.RawURLEncoding.EncodeToString(key)
|
node.ExtraConfig.RealityConfig.PrivateKey = base64.RawURLEncoding.EncodeToString(key)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user