Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

improve for https://github.com/rustdesk/rustdesk/issues/4162

rustdesk51c603a3a6f1
diff --git a/src/license.rs b/src/license.rs
index 029611345..3a2bc1388 100644
--- a/src/license.rs
+++ b/src/license.rs
@@ -82,6 +82,12 @@ pub fn get_license_from_string(s: &str) -> ResultType<License> {
for s in strs {
if let Ok(lic) = get_license_from_string_(s) {
return Ok(lic);
+ } else if s.contains("(") { // https://github.com/rustdesk/rustdesk/issues/4162
+ for s in s.split("(") {
+ if let Ok(lic) = get_license_from_string_(s) {
+ return Ok(lic);
+ }
+ }
}
}
}