From e9095eb5cf9c6d50410874939bc9a4472e0692e9 Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Sun, 22 Oct 2023 11:25:22 +0200 Subject: [PATCH] Bind tcpbench server on address in netbench. --- netbench.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/netbench.pl b/netbench.pl index e6da6b5d..44b23368 100755 --- a/netbench.pl +++ b/netbench.pl @@ -171,6 +171,7 @@ sub start_server_tcp { $timeout += $opts{t} if defined($opts{t}); my @cmd = ('tcpbench', '-s'); unshift @cmd, ('timeout', $timeout) if $opts{t}; + push @cmd, "-b$proc->{addr}"; push @cmd, "-p$proc->{port}"; push @cmd, "-S$opts{b}" if defined($opts{b}); unshift @cmd, ('ssh', '-nT', $proc->{ssh}) if $proc->{ssh};