mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 14:14:02 +03:00
Use SyncWrite call to send a packet to proxy
This commit is contained in:
+1
-1
@@ -90,7 +90,7 @@ func (p *Proxy) ServeConn(conn essentials.Conn) {
|
||||
}
|
||||
defer clientConn.Stop()
|
||||
|
||||
if _, err := clientConn.Write(noise); err != nil {
|
||||
if _, err := clientConn.SyncWrite(noise); err != nil {
|
||||
ctx.logger.InfoError("cannot send the first packet", err)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user