Skip to content

Commit

Permalink
cherry-pick(#30677): chore: print resolved host in the http server te… (
Browse files Browse the repository at this point in the history
#30679)

…rminal
  • Loading branch information
yury-s authored May 6, 2024
1 parent 2d437e8 commit 54c157d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/playwright-core/src/utils/httpServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ export class HttpServer {
this._urlPrefix = address;
} else {
this._port = address.port;
this._urlPrefix = `http://${host}:${address.port}`;
const resolvedHost = address.family === 'IPv4' ? address.address : `[${address.address}]`;
this._urlPrefix = `http://${resolvedHost}:${address.port}`;
}
}
return this._urlPrefix;
Expand Down

0 comments on commit 54c157d

Please sign in to comment.