Adjust default listen address to avoid test failures

This commit is contained in:
Matt Palmer 2024-06-09 20:10:09 +10:00
parent 41618f76dd
commit 4712250dbb
1 changed files with 2 additions and 2 deletions

View File

@ -533,7 +533,7 @@ impl TestServerConfig {
tp: HttpVer::Both,
stream: StreamType::Tcp,
client_request_timeout: Duration::from_secs(5),
listen_address: "localhost".to_string(),
listen_address: "127.0.0.1".to_string(),
port: 0,
workers: 1,
disable_redirects: false,
@ -611,7 +611,7 @@ impl TestServerConfig {
/// Sets the address the server will listen on.
///
/// By default, only listens on `localhost`.
/// By default, only listens on `127.0.0.1`.
pub fn listen_address(mut self, addr: impl Into<String>) -> Self {
self.listen_address = addr.into();
self