Skip to content

Commit 2e392e3

Browse files
committed
Rebase and fix parameter checking error
1 parent 0d10fec commit 2e392e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/iperf_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1853,7 +1853,7 @@ iperf_parse_arguments(struct iperf_test *test, int argc, char **argv)
18531853
if (!rate_flag)
18541854
test->settings->rate = test->protocol->id == Pudp ? UDP_RATE : 0;
18551855

1856-
if (test->data_port != test->server_port && test->protocol->id != Pudp) {
1856+
if (test->role == 'c' && test->data_port != test->server_port && test->protocol->id != Pudp) {
18571857
i_errno = IEDATAPORT;
18581858
return -1;
18591859
}

0 commit comments

Comments
 (0)