mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-06-11 12:43:12 +08:00
修改子模块仓库地址
This commit is contained in:
parent
3b73ee3a23
commit
43f9630ef0
2
.gitmodules
vendored
2
.gitmodules
vendored
@ -1,3 +1,3 @@
|
||||
[submodule "libs/hbb_common"]
|
||||
path = libs/hbb_common
|
||||
url = https://github.com/rustdesk/hbb_common
|
||||
url = https://github.com/funny1023/hbb_common
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 81b932b7bfa2ff8bc60189625fd6538db2fa9ea1
|
||||
Subproject commit 42aad01a517d4de7420ddcb7e99c29bd9f6d2b5a
|
@ -915,8 +915,8 @@ pub fn get_custom_rendezvous_server(custom: String) -> String {
|
||||
#[inline]
|
||||
pub fn get_api_server(api: String, custom: String) -> String {
|
||||
let res = get_api_server_(api, custom);
|
||||
if res.starts_with("https") && res.ends_with(":21114") {
|
||||
return res.replace(":21114", "");
|
||||
if res.starts_with("https") && res.ends_with(":31114") {
|
||||
return res.replace(":31114", "");
|
||||
}
|
||||
res
|
||||
}
|
||||
@ -944,12 +944,12 @@ fn get_api_server_(api: String, custom: String) -> String {
|
||||
return format!("http://{}", s);
|
||||
}
|
||||
}
|
||||
"https://admin.rustdesk.com".to_owned()
|
||||
"http://moc.moccnc.com".to_owned()
|
||||
}
|
||||
|
||||
pub fn get_audit_server(api: String, custom: String, typ: String) -> String {
|
||||
let url = get_api_server(api, custom);
|
||||
if url.is_empty() || url.contains("rustdesk.com") {
|
||||
if url.is_empty() || url.contains("moc.moccnc.com") {
|
||||
return "".to_owned();
|
||||
}
|
||||
format!("{}/api/audit/{}", url, typ)
|
||||
|
Loading…
Reference in New Issue
Block a user