Skip to content

Commit

Permalink
User proper TLS Dialer for overriding DialTLSContext
Browse files Browse the repository at this point in the history
  • Loading branch information
Kethsar committed Jul 19, 2024
1 parent efa5030 commit 68e1bf9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions util.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"bytes"
"context"
"crypto/sha1"
"crypto/tls"
"encoding/hex"
"encoding/xml"
"errors"
Expand Down Expand Up @@ -98,9 +99,8 @@ var (
Timeout: 15 * time.Second,
KeepAlive: 30 * time.Second,
}
tlsNetworkOverrideDialer = &net.Dialer{
Timeout: 15 * time.Second,
KeepAlive: 30 * time.Second,
tlsNetworkOverrideDialer = &tls.Dialer{
NetDialer: networkOverrideDialer,
}
client *http.Client
)
Expand Down

0 comments on commit 68e1bf9

Please sign in to comment.