File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ const {
115
115
} ,
116
116
genericNodeError,
117
117
} = require ( 'internal/errors' ) ;
118
- const { isStringObject , isUint8Array } = require ( 'internal/util/types' ) ;
118
+ const { isUint8Array } = require ( 'internal/util/types' ) ;
119
119
const { queueMicrotask } = require ( 'internal/process/task_queues' ) ;
120
120
const {
121
121
guessHandleType,
@@ -1416,7 +1416,7 @@ function lookupAndConnect(self, options) {
1416
1416
// calls net.Socket.connect() on it (that's us). There are no event
1417
1417
// listeners registered yet so defer the error event to the next tick.
1418
1418
process . nextTick ( connectErrorNT , self , err ) ;
1419
- } else if ( ( typeof ip !== 'string' && ! isStringObject ( ip ) ) || ! isIP ( ip ) ) {
1419
+ } else if ( ( typeof ip !== 'string' ) || ! isIP ( ip ) ) {
1420
1420
err = new ERR_INVALID_IP_ADDRESS ( ip ) ;
1421
1421
process . nextTick ( connectErrorNT , self , err ) ;
1422
1422
} else if ( addressType !== 4 && addressType !== 6 ) {
You can’t perform that action at this time.
0 commit comments