Skip to content

Commit

Permalink
cherry-pick(microsoft#30677): chore: print resolved host in the http …
Browse files Browse the repository at this point in the history
…server terminal
  • Loading branch information
pavelfeldman authored and yury-s committed May 6, 2024
1 parent 2d437e8 commit 5287d38
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 5287d38

Please sign in to comment.