mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-13 23:31:28 +03:00
use tcp only for socks5
This commit is contained in:
Submodule libs/hbb_common updated: 4eca5b45b9...3afaf64944
@@ -383,14 +383,8 @@ impl RendezvousMediator {
|
|||||||
pub async fn start(server: ServerPtr, host: String) -> ResultType<()> {
|
pub async fn start(server: ServerPtr, host: String) -> ResultType<()> {
|
||||||
log::info!("start rendezvous mediator of {}", host);
|
log::info!("start rendezvous mediator of {}", host);
|
||||||
//If the investment agent type is http or https, then tcp forwarding is enabled.
|
//If the investment agent type is http or https, then tcp forwarding is enabled.
|
||||||
let is_http_proxy = if let Some(conf) = Config::get_socks() {
|
|
||||||
let proxy = Proxy::from_conf(&conf, None)?;
|
|
||||||
proxy.is_http_or_https()
|
|
||||||
} else {
|
|
||||||
false
|
|
||||||
};
|
|
||||||
if (cfg!(debug_assertions) && option_env!("TEST_TCP").is_some())
|
if (cfg!(debug_assertions) && option_env!("TEST_TCP").is_some())
|
||||||
|| is_http_proxy
|
|| Config::is_proxy()
|
||||||
|| get_builtin_option(config::keys::OPTION_DISABLE_UDP) == "Y"
|
|| get_builtin_option(config::keys::OPTION_DISABLE_UDP) == "Y"
|
||||||
{
|
{
|
||||||
Self::start_tcp(server, host).await
|
Self::start_tcp(server, host).await
|
||||||
|
|||||||
Reference in New Issue
Block a user