Skip to content

Commit

Permalink
Set MinVersion to TLS 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
waybackarchiver committed Jun 10, 2023
1 parent f4d799c commit b649b37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tor.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ func newTorClient(ctx context.Context) (client *http.Client, t *tor.Tor, err err
ExpectContinueTimeout: 1 * time.Second,
MaxIdleConnsPerHost: runtime.GOMAXPROCS(0) + 1,
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true,
InsecureSkipVerify: false,
MinVersion: tls.VersionTLS12,
},
},
}, t, nil
Expand Down

0 comments on commit b649b37

Please sign in to comment.