mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 16:24:03 +03:00
Fix double TLS wrapping for noise
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user