mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-11 12:33:45 +03:00
…rminal
This commit is contained in:
parent
2d437e86e2
commit
54c157dec5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user