mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 09:45:31 +00:00
bencher: always listen on localhost
This commit is contained in:
parent
85862f161a
commit
255edf1b16
1 changed files with 3 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
use std::{
|
||||
io::Write,
|
||||
net::{Ipv4Addr, SocketAddr, SocketAddrV4},
|
||||
path::PathBuf,
|
||||
process::{Child, Command, Stdio},
|
||||
rc::Rc,
|
||||
|
|
@ -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)?;
|
||||
|
|
@ -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
|
||||
)?;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue