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