test: enable tcp relay for bootstrap fuzzing

This commit is contained in:
sudden6 2022-12-03 00:08:20 +01:00
parent 7ee7720890
commit 9fae455bab
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -136,6 +136,11 @@ void TestBootstrap(Fuzz_Data &input)
tox_options_set_proxy_port(opts.get(), 8080);
}
CONSUME1_OR_RETURN(const uint8_t tcp_relay_enabled, input);
if (tcp_relay_enabled >= (UINT8_MAX / 2)) {
tox_options_set_tcp_port(opts.get(), 33445);
}
Tox_Err_New error_new;
Tox *tox = tox_new(opts.get(), &error_new);