From ce621e0d0d4afc4747b8ba76f029374d6872b9bc Mon Sep 17 00:00:00 2001 From: Michel de Graaf Date: Mon, 7 Sep 2026 15:24:55 +0200 Subject: [PATCH] test(stress): bind the mock peers on all interfaces soulfind has reported the host's LAN address for a loopback login since 1eab2e8 (November 2025), so the client dials the mocks there and a listener bound to 127.0.0.1 refuses it: every upload and most downloads failed against a current soulfind while the e2e suite, whose mocks already bind all interfaces, stayed green. --- soulseek-rs-lib/examples/stress.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/soulseek-rs-lib/examples/stress.rs b/soulseek-rs-lib/examples/stress.rs index b73aaf2..a14f750 100644 --- a/soulseek-rs-lib/examples/stress.rs +++ b/soulseek-rs-lib/examples/stress.rs @@ -316,7 +316,9 @@ impl Seeder { Metrics::bump(&self.metrics.mocks_offline); return; }; - let Ok(listener) = TcpListener::bind(("127.0.0.1", port)) else { + // All interfaces: soulfind reports the host's LAN address for a + // loopback login, and the client dials that. + let Ok(listener) = TcpListener::bind(("0.0.0.0", port)) else { Metrics::bump(&self.metrics.mocks_offline); return; }; @@ -630,7 +632,9 @@ impl Leecher { Metrics::bump(&self.metrics.mocks_offline); return; }; - let Ok(listener) = TcpListener::bind(("127.0.0.1", port)) else { + // All interfaces: soulfind reports the host's LAN address for a + // loopback login, and the client dials that. + let Ok(listener) = TcpListener::bind(("0.0.0.0", port)) else { Metrics::bump(&self.metrics.mocks_offline); return; };