minor improve

This commit is contained in:
rustdesk 2022-11-23 22:34:17 +08:00
parent bdeb55b337
commit c1af464203

View File

@ -931,7 +931,7 @@ impl PeerConfig {
.to_owned();
let id_decoded_string: String;
if id.starts_with("base64_") && id != "base64_" {
if id.starts_with("base64_") && id.len() != 7 {
let id_decoded = base64::decode(&id[7..], base64::Variant::Original)
.unwrap_or(Vec::new());
id_decoded_string =