mirror of
https://github.com/nadoo/glider.git
synced 2026-11-23 23:49:41 +08:00
config: added tcpbufsize & udpbufsize(default: 2048)
This commit is contained in:
1 parent
41861ff48e
commit
d615dc087e
7 files changed
+32
-10
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user