Merge pull request #67 from michel/test/stress-mock-bind
test(stress): bind the mock peers on all interfaces
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user