Skip to content

Commit

Permalink
feat: allow tls1.0
Browse files Browse the repository at this point in the history
close #36
  • Loading branch information
zema1 committed Sep 4, 2023
1 parent b2c68c4 commit 74248ac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ctrl/ctrl.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ func Run(ctx context.Context, config *Suo5Config) error {

tr := &http.Transport{
TLSClientConfig: &tls.Config{
MinVersion: tls.VersionTLS10,
InsecureSkipVerify: true,
},
DialTLSContext: func(ctx context.Context, network, addr string) (net.Conn, error) {
Expand Down Expand Up @@ -331,7 +332,10 @@ func newRawClient(upstream string, timeout time.Duration) *rawhttp.Client {
AutomaticContentLength: true,
ForceReadAllBody: false,
TLSHandshake: func(conn net.Conn, addr string, options *rawhttp.Options) (net.Conn, error) {
uTlsConn := utls.UClient(conn, &utls.Config{InsecureSkipVerify: true}, utls.HelloRandomized)
uTlsConn := utls.UClient(conn, &utls.Config{
InsecureSkipVerify: true,
MinVersion: tls.VersionTLS10,
}, utls.HelloRandomized)
if err := uTlsConn.Handshake(); err != nil {
return nil, err
}
Expand Down

0 comments on commit 74248ac

Please sign in to comment.