Skip to content

Commit 9fae455

Browse files
committed
test: enable tcp relay for bootstrap fuzzing
1 parent 7ee7720 commit 9fae455

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

testing/fuzzing/bootstrap_harness.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@ void TestBootstrap(Fuzz_Data &input)
136136
tox_options_set_proxy_port(opts.get(), 8080);
137137
}
138138

139+
CONSUME1_OR_RETURN(const uint8_t tcp_relay_enabled, input);
140+
if (tcp_relay_enabled >= (UINT8_MAX / 2)) {
141+
tox_options_set_tcp_port(opts.get(), 33445);
142+
}
143+
139144
Tox_Err_New error_new;
140145
Tox *tox = tox_new(opts.get(), &error_new);
141146

0 commit comments

Comments
 (0)