fix test
This commit is contained in:
parent
5030094099
commit
234b04252a
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ export function getNetworkAddress(protocol: Protocol = 'http', hostname: string,
|
|||
detail.family === 4),
|
||||
)
|
||||
.forEach((detail) => {
|
||||
let host = detail.address.replace('127.0.0.1', hostname === undefined || wildcardHosts.has(hostname) ? 'localhost' : hostname)
|
||||
let host = detail.address.replace('127.0.0.1', hostname === undefined || wildcardHosts.has(hostname) ? '127.0.0.1' : hostname)
|
||||
// ipv6 host
|
||||
if (host.includes(':')) {
|
||||
host = `[${host}]`
|
||||
|
|
Loading…
Reference in a new issue