File tree 1 file changed +0
-5
lines changed
1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -319,7 +319,6 @@ export async function makeSocket(options: MakeConnectionOptions): Promise<Stream
319
319
const useTLS = options . tls ?? false ;
320
320
const noDelay = options . noDelay ?? true ;
321
321
const connectTimeoutMS = options . connectTimeoutMS ?? 30000 ;
322
- const rejectUnauthorized = options . rejectUnauthorized ?? true ;
323
322
const existingSocket = options . existingSocket ;
324
323
325
324
let socket : Stream ;
@@ -375,10 +374,6 @@ export async function makeSocket(options: MakeConnectionOptions): Promise<Stream
375
374
return socket ;
376
375
} catch ( error ) {
377
376
socket . destroy ( ) ;
378
- if ( 'authorizationError' in socket && socket . authorizationError != null && rejectUnauthorized ) {
379
- // TODO(NODE-5192): wrap this with a MongoError subclass
380
- throw socket . authorizationError ;
381
- }
382
377
throw error ;
383
378
} finally {
384
379
socket . setTimeout ( 0 ) ;
You can’t perform that action at this time.
0 commit comments