rustdesk лет назад: 4
Родитель
Сommit
b8b927b885
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      src/lic.rs

+ 5 - 0
src/lic.rs

@@ -28,6 +28,8 @@ pub struct Post {
28
     next_check_time: u64,
28
     next_check_time: u64,
29
     #[serde(default)]
29
     #[serde(default)]
30
     nonce: String,
30
     nonce: String,
31
+    #[serde(default)]
32
+    tip: String,
31
 }
33
 }
32
 
34
 
33
 const LICENSE_FILE: &'static str = ".license.txt";
35
 const LICENSE_FILE: &'static str = ".license.txt";
@@ -129,6 +131,9 @@ fn check_email(machine: String, email: String, version: String) -> ResultType<u6
129
             write_lic(&p.machine);
131
             write_lic(&p.machine);
130
         }
132
         }
131
         log::info!("License OK");
133
         log::info!("License OK");
134
+        if !p.tip.is_empty() {
135
+            log::info!("{}", p.tip);
136
+        }
132
         let mut wait = p.next_check_time;
137
         let mut wait = p.next_check_time;
133
         if wait == 0 {
138
         if wait == 0 {
134
             wait = 3600 * 24 * 30;
139
             wait = 3600 * 24 * 30;