fix(web): use 127.0.0.1 loopback address when checking if a port is open (#17192)
This commit is contained in:
parent
05f114fef5
commit
fe4682a0e7
@ -30,7 +30,9 @@ export function waitForPortOpen(
|
||||
}
|
||||
});
|
||||
|
||||
client.connect({ port, host: options.host ?? 'localhost' });
|
||||
// Node will use IPv6 if it is available, but this can cause issues if the server is only listening on IPv4.
|
||||
// Hard-coding to look on 127.0.0.1 to avoid using the IPv6 loopback address "::1".
|
||||
client.connect({ port, host: options.host ?? '127.0.0.1' });
|
||||
};
|
||||
|
||||
checkPort();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user