mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2026-01-31 15:53:10 +08:00
Merge pull request #6713 from projectdiscovery/dwisiswant0/feat/enable-TLS-session-cache-for-client-pool
feat: enable TLS session cache for client pool
This commit is contained in:
@@ -29,6 +29,7 @@ func newHttpClient(options *types.Options) (*http.Client, error) {
|
||||
Renegotiation: tls.RenegotiateOnceAsClient,
|
||||
InsecureSkipVerify: true,
|
||||
MinVersion: tls.VersionTLS10,
|
||||
ClientSessionCache: tls.NewLRUClientSessionCache(1024),
|
||||
}
|
||||
|
||||
if options.SNI != "" {
|
||||
|
||||
@@ -248,6 +248,7 @@ func wrappedGet(options *types.Options, configuration *Configuration) (*retryabl
|
||||
Renegotiation: tls.RenegotiateOnceAsClient,
|
||||
InsecureSkipVerify: true,
|
||||
MinVersion: tls.VersionTLS10,
|
||||
ClientSessionCache: tls.NewLRUClientSessionCache(1024),
|
||||
}
|
||||
|
||||
if options.SNI != "" {
|
||||
|
||||
Reference in New Issue
Block a user