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.
This commit is contained in:
Michel de Graaf
2026-09-07 15:24:55 +02:00
parent 7c4d9e2c9a
commit ce621e0d0d
+6 -2
View File
@@ -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;
};