add OPTION_DISABLE_UDP
This commit is contained in:
parent
024220e58a
commit
53dbc2fa6f
2 changed files with 6 additions and 1 deletions
|
|
@ -392,7 +392,10 @@ impl RendezvousMediator {
|
|||
} else {
|
||||
false
|
||||
};
|
||||
if (cfg!(debug_assertions) && option_env!("TEST_TCP").is_some()) || is_http_proxy {
|
||||
if (cfg!(debug_assertions) && option_env!("TEST_TCP").is_some())
|
||||
|| is_http_proxy
|
||||
|| Config::get_option(config::keys::OPTION_DISABLE_UDP) == "Y"
|
||||
{
|
||||
Self::start_tcp(server, host).await
|
||||
} else {
|
||||
Self::start_udp(server, host).await
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue