aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorrustdesk <[email protected]>2022-07-31 01:50:53 +0800
committerrustdesk <[email protected]>2022-07-31 01:50:53 +0800
commit848b5aedb7e8bda0f582706c792ffbab2d657a39 (patch)
tree561df6032049f26d19b62e5bd48b4409855d4e89 /src
parent9036b7b9fa18b29c7317ac5cbf886122dbceb249 (diff)
downloadrustdesk-server-848b5aedb7e8bda0f582706c792ffbab2d657a39.tar.gz
rustdesk-server-848b5aedb7e8bda0f582706c792ffbab2d657a39.zip
remove ':' from hash
Diffstat (limited to 'src')
-rw-r--r--src/common.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.rs b/src/common.rs
index 253d3d1..a57485b 100644
--- a/src/common.rs
+++ b/src/common.rs
@@ -118,7 +118,7 @@ pub fn gen_sk(wait: u64) -> (String, Option<sign::SecretKey>) {
};
let (mut pk, mut sk) = gen_func();
for _ in 0..300 {
- if !pk.contains("/") {
+ if !pk.contains("/") && !pk.contains(":") {
break;
}
(pk, sk) = gen_func();