File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ import { SaslHandshakeResponse } from "./responses/sasl_handshake_response"
3232import { TuneResponse } from "./responses/tune_response"
3333import {
3434 DEFAULT_FRAME_MAX ,
35+ DEFAULT_SSL_CONFIG ,
3536 DEFAULT_UNLIMITED_FRAME_MAX ,
3637 REQUIRED_MANAGEMENT_VERSION ,
3738 isString ,
@@ -640,10 +641,7 @@ function isSameStream({ metadataInfo }: { metadataInfo: MetadataInfo }): (e: Lis
640641}
641642
642643function buildSSLParams ( ssl : SSLConnectionParams | true ) {
643- if ( ssl === true ) return { }
644+ if ( ssl === true ) return DEFAULT_SSL_CONFIG
644645
645- return {
646- ...ssl ,
647- // rejectUnauthorized: false,
648- }
646+ return ssl
649647}
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ export function range(count: number): number[] {
1313 return ret
1414}
1515
16+ export const DEFAULT_SSL_CONFIG = { rejectUnauthorized : false }
17+
1618export const DEFAULT_FRAME_MAX = 1048576
1719export const DEFAULT_UNLIMITED_FRAME_MAX = 0
1820export const REQUIRED_MANAGEMENT_VERSION = "3.13.0"
You can’t perform that action at this time.
0 commit comments