diff options
Diffstat (limited to 'src/iperf_client_api.c')
-rw-r--r-- | src/iperf_client_api.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/iperf_client_api.c b/src/iperf_client_api.c index 6780469..ab84cfa 100644 --- a/src/iperf_client_api.c +++ b/src/iperf_client_api.c @@ -268,7 +268,8 @@ iperf_connect(struct iperf_test *test) /* Create and connect the control channel */ if (test->ctrl_sck < 0) - test->ctrl_sck = netdial(test->settings->domain, Ptcp, test->bind_address, test->server_hostname, test->server_port); + // Create the control channel using an ephemeral port + test->ctrl_sck = netdial(test->settings->domain, Ptcp, test->bind_address, NULL, test->server_hostname, test->server_port); if (test->ctrl_sck < 0) { i_errno = IECONNECT; return -1; |