mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 21:24:01 +03:00
Get rid of unrequired buffering for tls records
This commit is contained in:
@@ -32,7 +32,5 @@ func (c Conn) Write(p []byte) (int, error) {
|
||||
payload := buf.Bytes()
|
||||
c.Encryptor.XORKeyStream(payload, payload)
|
||||
|
||||
n, err := buf.WriteTo(c.Conn)
|
||||
|
||||
return int(n), err // nolint: wrapcheck
|
||||
return c.Conn.Write(payload)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user