config: added tcpbufsize & udpbufsize(default: 2048)

This commit is contained in:
nadoo committed 2021-07-24 23:45:53 +08:00
1 parent 41861ff48e
commit d615dc087e
7 files changed
+32 -10

No files matched your search

+3
View File
@@ -67,6 +67,9 @@ func (a Addr) String() string {
return net.JoinHostPort(host, port)
}
// Network returns network name. Implements net.Addr interface.
func (a Addr) Network() string { return "socks" }
// ReadAddrBuf reads just enough bytes from r to get a valid Addr.
func ReadAddrBuf(r io.Reader, b []byte) (Addr, error) {
if len(b) < MaxAddrLen {