Fix double TLS wrapping for noise

This commit is contained in:
9seconds
2026-03-12 19:07:11 +01:00
parent 7aa01dcebe
commit 0bfc1ef2d4
3 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ func SendServerHello(w io.Writer, secret []byte, clientHello *ClientHello) ([]by
_, err := w.Write(packet)
return noise.Bytes(), err
return noise.Bytes()[tls.SizeHeader:], err
}
func generateServerHello(buf *bytes.Buffer, hello *ClientHello) {