mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
add tag
This commit is contained in:
parent
451ddecbd7
commit
820f0962ca
1 changed files with 2 additions and 0 deletions
|
|
@ -200,6 +200,8 @@ func DialOptions(ctx context.Context, rawurl string, options ...ClientOption) (*
|
|||
}
|
||||
|
||||
cfg := new(clientConfig)
|
||||
|
||||
//http1.1 => http2
|
||||
tr := &http.Transport{
|
||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, // İsteğe bağlı, güvenlik önlemleri gerektiğinde uygun şekilde ayarlayın
|
||||
ForceAttemptHTTP2: true, // !!!note: bu kısmı eklersen HTTP/2'yi etkinleştirirsin eklemezsende default olarak http1.1 çalışır
|
||||
|
|
|
|||
Loading…
Reference in a new issue