File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,11 +34,13 @@ const remoteFamilyCandidates = ['IPv4'];
3434if ( common . hasIPv6 ) remoteFamilyCandidates . push ( 'IPv6' ) ;
3535
3636const server = net . createServer ( common . mustCall ( function ( socket ) {
37- // Test to see real value in CI log
38- assert . match ( socket . remoteAddress ,
39- / ^ 1 2 7 \. 0 \. 0 \. 1 $ | ^ : : 1 $ | ^ : : f f f f : 1 2 7 \. 0 \. 0 \. 1 $ / ) ;
40- // REM: assert.ok(remoteAddrCandidates.includes(socket.remoteAddress));
41- assert . ok ( remoteFamilyCandidates . includes ( socket . remoteFamily ) ) ;
37+ // REM: assert.match(socket.remoteAddress,
38+ // REM: /^127\.0\.0\.1$|^::1$|^::ffff:127\.0\.0\.1$/);
39+ assert . ok ( remoteAddrCandidates . includes ( socket . remoteAddress ) ,
40+ `Illformed remoteAddress: ${ socket . remoteAddress } ` ) ;
41+ assert . ok ( remoteFamilyCandidates . includes ( socket . remoteFamily ) ,
42+ `Illformed remoteFamily: ${ socket . remoteFamily } ` ) ;
43+ // REM: assert.ok(remoteFamilyCandidates.includes(socket.remoteFamily));
4244 assert . ok ( socket . remotePort ) ;
4345 assert . notStrictEqual ( socket . remotePort , this . address ( ) . port ) ;
4446 socket . on ( 'end' , function ( ) {
You can’t perform that action at this time.
0 commit comments