We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d437e8 commit 54c157dCopy full SHA for 54c157d
packages/playwright-core/src/utils/httpServer.ts
@@ -126,7 +126,8 @@ export class HttpServer {
126
this._urlPrefix = address;
127
} else {
128
this._port = address.port;
129
- this._urlPrefix = `http://${host}:${address.port}`;
+ const resolvedHost = address.family === 'IPv4' ? address.address : `[${address.address}]`;
130
+ this._urlPrefix = `http://${resolvedHost}:${address.port}`;
131
}
132
133
return this._urlPrefix;
0 commit comments