mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 12:54:01 +03:00
Add new TCPBufferSize parameter to network
This commit is contained in:
@@ -75,6 +75,10 @@ func (n *network) IdleTimeout() time.Duration {
|
||||
return n.idleTimeout
|
||||
}
|
||||
|
||||
func (n *network) TCPBufferSize() int {
|
||||
return n.dialer.TCPBufferSize()
|
||||
}
|
||||
|
||||
func (n *network) dnsResolve(protocol, address string) ([]string, error) {
|
||||
if net.ParseIP(address) != nil {
|
||||
return []string{address}, nil
|
||||
|
||||
Reference in New Issue
Block a user