Fix: wrap net.Conn to avoid using *net.TCPConn.(ReadFrom) (#1209)

This commit is contained in:
Kr328
2021-02-01 20:06:45 +08:00
committed by GitHub
parent fcc594ae26
commit cd48f69b1f
2 changed files with 16 additions and 2 deletions

11
common/net/io.go Normal file
View File

@ -0,0 +1,11 @@
package net
import "io"
type ReadOnlyReader struct {
io.Reader
}
type WriteOnlyWriter struct {
io.Writer
}