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:
@@ -316,7 +316,9 @@ impl Seeder {
|
|||||||
Metrics::bump(&self.metrics.mocks_offline);
|
Metrics::bump(&self.metrics.mocks_offline);
|
||||||
return;
|
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);
|
Metrics::bump(&self.metrics.mocks_offline);
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
@@ -630,7 +632,9 @@ impl Leecher {
|
|||||||
Metrics::bump(&self.metrics.mocks_offline);
|
Metrics::bump(&self.metrics.mocks_offline);
|
||||||
return;
|
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);
|
Metrics::bump(&self.metrics.mocks_offline);
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user