mirror of
https://github.com/XTLS/REALITY.git
synced 2026-09-22 23:08:01 +03:00
Replace bytes.Clone() with append()
This commit is contained in:
@@ -98,7 +98,7 @@ func (hs *serverHandshakeStateTLS13) handshake() error {
|
||||
}
|
||||
*/
|
||||
{
|
||||
signedCert := bytes.Clone(signedCert)
|
||||
signedCert := append([]byte{}, signedCert...)
|
||||
|
||||
h := hmac.New(sha512.New, c.AuthKey)
|
||||
h.Write(ed25519Priv[32:])
|
||||
|
||||
Reference in New Issue
Block a user