Skip to content

Commit 3e65a66

Browse files
authored
fix chrome connection in node 17, use 127.0.0.1 explicitly
2 parents 56731dd + ba8d76b commit 3e65a66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chrome-launcher.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ class Launcher {
313313
// resolves if ready, rejects otherwise
314314
private isDebuggerReady(): Promise<void> {
315315
return new Promise((resolve, reject) => {
316-
const client = net.createConnection(this.port!);
316+
const client = net.createConnection(this.port!, '127.0.0.1');
317317
client.once('error', err => {
318318
this.cleanup(client);
319319
reject(err);

0 commit comments

Comments
 (0)