mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 09:58: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 {
|
||||
node.ExtraConfig.EnableReality = "false"
|
||||
} else {
|
||||
key := crypt.GenX25519Private([]byte(strconv.Itoa(c.NodeId) + c.NodeType + c.Token +
|
||||
node.ExtraConfig.RealityConfig.PrivateKey))
|
||||
key := crypt.GenX25519Private([]byte(strconv.Itoa(c.NodeId) + c.NodeType + c.Token))
|
||||
node.ExtraConfig.RealityConfig.PrivateKey = base64.RawURLEncoding.EncodeToString(key)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user