Skip to content

Commit

Permalink
Change from localhost to 127.0.0.1 in simple_server.js
Browse files Browse the repository at this point in the history
As of 18, node defaults to ipv6, which means localhost is no longer IPv4 address 127.0.0.1; explicitly use IPv4 IP here instead.
  • Loading branch information
mvolz authored Oct 17, 2024
1 parent bd788f9 commit c266a80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/utils/simple_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = ( options ) => {
res.end( 'ok\n' );
} );
return new P( ( resolve, reject ) => {
server.listen( options.config.port, 'localhost', ( err ) => {
server.listen( options.config.port, '127.0.0.1', ( err ) => {
if ( err ) {
return reject( err );
}
Expand Down

0 comments on commit c266a80

Please sign in to comment.