Add new TCPBufferSize parameter to network

This commit is contained in:
9seconds
2021-03-17 21:44:42 +03:00
parent 5e31b95bb5
commit 57cb1b5aa0
11 changed files with 54 additions and 3 deletions
+4
View File
@@ -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