Skip to content

Commit

Permalink
bencher: always listen on localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
greatest-ape committed Jan 3, 2024
1 parent 85862f1 commit 255edf1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/bencher/src/protocols/udp.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::{
io::Write,
net::{Ipv4Addr, SocketAddr, SocketAddrV4},
path::PathBuf,
process::{Child, Command, Stdio},
rc::Rc,
Expand Down Expand Up @@ -284,6 +285,7 @@ impl ProcessRunner for AquaticUdpRunner {

c.socket_workers = self.socket_workers;
c.swarm_workers = self.swarm_workers;
c.network.address = SocketAddr::V4(SocketAddrV4::new(Ipv4Addr::LOCALHOST, 3000));
c.protocol.max_response_peers = 50;

let c = toml::to_string_pretty(&c)?;
Expand Down Expand Up @@ -336,7 +338,7 @@ impl ProcessRunner for OpenTrackerUdpRunner {
) -> anyhow::Result<Child> {
writeln!(
tmp_file,
"listen.udp.workers {}\nlisten.udp 0.0.0.0:3000",
"listen.udp.workers {}\nlisten.udp 127.0.0.1:3000",
self.workers
)?;

Expand Down

0 comments on commit 255edf1

Please sign in to comment.