fix: timeout settings of http client

This commit is contained in:
Mmx
2024-10-14 12:01:39 +08:00
parent 746b146a04
commit e963917d87
2 changed files with 1 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ func CreateClientFromEth(eth *tools.Eth) *http.Client {
Timeout: config.Timeout,
LocalAddr: addr,
}).DialContext,
TLSHandshakeTimeout: config.Timeout,
TLSClientConfig: &tls.Config{
InsecureSkipVerify: config.Settings.Basic.SkipCertVerify,
},

View File

@@ -35,7 +35,6 @@ func CreateClientFromEth(eth *tools.Eth) *http.Client {
Transport: &http.Transport{
DialContext: dialer.DialContext,
TLSHandshakeTimeout: config.Timeout,
IdleConnTimeout: config.Timeout,
TLSClientConfig: &tls.Config{InsecureSkipVerify: config.Settings.Basic.SkipCertVerify},
Proxy: http.ProxyFromEnvironment,
},