mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 10:44:02 +03:00
Correct error for non-getting of underlying connection
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ func setCommonSocketOptions(conn *net.TCPConn, bufferSize int) error {
|
||||
|
||||
rawConn, err := conn.SyscallConn()
|
||||
if err != nil {
|
||||
return fmt.Errorf("cannot get underlying raw connection")
|
||||
return fmt.Errorf("cannot get underlying raw connection: %w", err)
|
||||
}
|
||||
|
||||
rawConn.Control(func(fd uintptr) { // nolint: errcheck
|
||||
|
||||
Reference in New Issue
Block a user