mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
safer handle_intranet
This commit is contained in:
@@ -1011,6 +1011,11 @@ impl Config {
|
||||
CONFIG2.read().unwrap().socks.clone()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn is_proxy() -> bool {
|
||||
Self::get_network_type() != NetworkType::Direct
|
||||
}
|
||||
|
||||
pub fn get_network_type() -> NetworkType {
|
||||
match &CONFIG2.read().unwrap().socks {
|
||||
None => NetworkType::Direct,
|
||||
|
||||
Reference in New Issue
Block a user