File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,13 @@ const remoteFamilyCandidates = ['IPv4'];
34
34
if ( common . hasIPv6 ) remoteFamilyCandidates . push ( 'IPv6' ) ;
35
35
36
36
const 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));
42
44
assert . ok ( socket . remotePort ) ;
43
45
assert . notStrictEqual ( socket . remotePort , this . address ( ) . port ) ;
44
46
socket . on ( 'end' , function ( ) {
You can’t perform that action at this time.
0 commit comments