Skip to content

Commit

Permalink
chore: adjust method of private key generation
Browse files Browse the repository at this point in the history
  • Loading branch information
stitchrs committed Aug 15, 2023
1 parent 438bcc3 commit da91966
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/panel/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit da91966

Please sign in to comment.