mirror of
https://github.com/rustdesk/hbb_common.git
synced 2026-05-25 17:19:15 +00:00
refact: option, touch mode, move to local
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use crate::{
|
||||
config::keys::OPTION_RELAY_SERVER,
|
||||
config::{use_ws, Config, Socks5Server, RELAY_PORT, RENDEZVOUS_PORT},
|
||||
protobuf::Message,
|
||||
socket_client::split_host_port,
|
||||
@@ -214,7 +215,7 @@ pub fn check_ws(endpoint: &str) -> String {
|
||||
};
|
||||
|
||||
let custom_rendezvous_server = Config::get_rendezvous_server();
|
||||
let relay_server = Config::get_option("relay-server");
|
||||
let relay_server = Config::get_option(OPTION_RELAY_SERVER);
|
||||
let rendezvous_port = split_host_port(&custom_rendezvous_server)
|
||||
.map(|(_, p)| p)
|
||||
.unwrap_or(RENDEZVOUS_PORT);
|
||||
|
||||
Reference in New Issue
Block a user