Fixes TCP server's host for Firefox WebDriver to IPv4 loopback address (#163288)

Closes #163281

## Summary

This PR forces TCP server to listen on `127.0.0.1`, which helps to avoid
`EADDRNOTAVAIL` error on IPv6 during Firefox WebDriver's initialization.

### For maintainers

- [x] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
This commit is contained in:
Youhei Sakurai 2023-08-07 22:06:47 +09:00 committed by GitHub
parent 974979bdf7
commit f9a5babb12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,7 +53,7 @@ export async function createStdoutSocket() {
)
).toPromise();
server.listen(0);
server.listen(0, '127.0.0.1');
cleanup$.subscribe(() => {
server.close();
});