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