Use non default dial context
This commit is contained in:
@@ -97,6 +97,9 @@ func NewHTTPClient(
|
||||
MaxIdleConnsPerHost: 32,
|
||||
MaxConnsPerHost: 32,
|
||||
IdleConnTimeout: 90 * time.Second,
|
||||
DialContext: func(ctx context.Context, network, address string) (net.Conn, error) {
|
||||
return dialer.Dial(network, address)
|
||||
},
|
||||
}
|
||||
|
||||
if forceIPv6 {
|
||||
|
||||
Reference in New Issue
Block a user