From 9fbfc1398fca5819b7334709dbb7e7faa57b546c Mon Sep 17 00:00:00 2001 From: buffalu <85544055+buffalu@users.noreply.github.com> Date: Mon, 22 Jan 2024 15:21:05 -0600 Subject: [PATCH] Remove tpu ip argument (#97) --- transaction-relayer/src/main.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/transaction-relayer/src/main.rs b/transaction-relayer/src/main.rs index 284881e5..0ab93ce1 100644 --- a/transaction-relayer/src/main.rs +++ b/transaction-relayer/src/main.rs @@ -56,10 +56,6 @@ static GLOBAL: Jemalloc = Jemalloc; #[derive(Parser, Debug)] #[clap(author, version, about, long_about = None)] struct Args { - /// IP address to bind to for transaction packets - #[arg(long, env, default_value_t = IpAddr::V4(std::net::Ipv4Addr::new(0, 0, 0, 0)))] - tpu_bind_ip: IpAddr, - /// Port to bind to advertise for TPU /// NOTE: There is no longer a socket created at this port since UDP transaction receiving is /// deprecated. @@ -214,14 +210,14 @@ struct Sockets { fn get_sockets(args: &Args) -> Sockets { let (tpu_quic_bind_port, mut tpu_quic_sockets) = multi_bind_in_range( - args.tpu_bind_ip, + IpAddr::V4(Ipv4Addr::from([0, 0, 0, 0])), (args.tpu_quic_port, args.tpu_quic_port + 1), 1, ) .expect("to bind tpu_quic sockets"); let (tpu_fwd_quic_bind_port, mut tpu_fwd_quic_sockets) = multi_bind_in_range( - args.tpu_bind_ip, + IpAddr::V4(Ipv4Addr::from([0, 0, 0, 0])), (args.tpu_quic_fwd_port, args.tpu_quic_fwd_port + 1), 1, )