Initial import
This commit is contained in:
16
proxy/util.go
Normal file
16
proxy/util.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package proxy
|
||||
|
||||
import (
|
||||
"io"
|
||||
"net"
|
||||
)
|
||||
|
||||
// connReader is a net.Conn with a separate reader.
|
||||
type connReader struct {
|
||||
net.Conn
|
||||
io.Reader
|
||||
}
|
||||
|
||||
func (c connReader) Read(p []byte) (int, error) {
|
||||
return c.Reader.Read(p)
|
||||
}
|
Reference in New Issue
Block a user