Skip to content

Commit

Permalink
chore: print resolved host in the http server terminal (#30677)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman authored May 6, 2024
1 parent 5d21e37 commit 979233e
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 979233e

Please sign in to comment.