proxy: move conn to proxy package

This commit is contained in:
nadoo committed 2020-10-01 22:38:34 +08:00
1 parent 47e20cf7f4
commit bd358e4ae6
14 files changed
+33 -42

No files matched your search

+2 -2
View File
@@ -6,9 +6,9 @@ import (
"io"
"net"
"github.com/nadoo/glider/common/conn"
"github.com/nadoo/glider/common/pool"
"github.com/nadoo/glider/common/socks"
"github.com/nadoo/glider/proxy"
)
// PktConn .
@@ -41,7 +41,7 @@ func (pc *PktConn) ReadFrom(b []byte) (int, net.Addr, error) {
}
length := int(binary.BigEndian.Uint16(b[:2]))
if length > conn.UDPBufSize {
if length > proxy.UDPBufSize {
return 0, nil, errors.New("packet invalid")
}