mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
proxy: move conn to proxy package
This commit is contained in:
1 parent
47e20cf7f4
commit
bd358e4ae6
14 files changed
+33
-42
No files matched your search
@@ -9,8 +9,8 @@ import (
|
||||
"net"
|
||||
"strings"
|
||||
|
||||
"github.com/nadoo/glider/common/conn"
|
||||
"github.com/nadoo/glider/common/pool"
|
||||
"github.com/nadoo/glider/proxy"
|
||||
)
|
||||
|
||||
const Version byte = 0
|
||||
@@ -69,7 +69,7 @@ func (c *Conn) Read(b []byte) (n int, err error) {
|
||||
}
|
||||
|
||||
if addLen := int64(buf[1]); addLen > 0 {
|
||||
conn.CopyN(ioutil.Discard, c.Conn, addLen)
|
||||
proxy.CopyN(ioutil.Discard, c.Conn, addLen)
|
||||
}
|
||||
c.rcved = true
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user