Skip to content

Commit b649b37

Browse files
Set MinVersion to TLS 1.2
1 parent f4d799c commit b649b37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tor.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ func newTorClient(ctx context.Context) (client *http.Client, t *tor.Tor, err err
7575
ExpectContinueTimeout: 1 * time.Second,
7676
MaxIdleConnsPerHost: runtime.GOMAXPROCS(0) + 1,
7777
TLSClientConfig: &tls.Config{
78-
InsecureSkipVerify: true,
78+
InsecureSkipVerify: false,
79+
MinVersion: tls.VersionTLS12,
7980
},
8081
},
8182
}, t, nil

0 commit comments

Comments
 (0)