Skip to content

Commit

Permalink
chore: print resolved host in the http server terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman committed May 6, 2024
1 parent b5dee9e commit dbff517
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 dbff517

Please sign in to comment.