mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2025-07-04 00:35:35 +00:00
tip
This commit is contained in:
parent
f432bba366
commit
b8b927b885
@ -28,6 +28,8 @@ pub struct Post {
|
|||||||
next_check_time: u64,
|
next_check_time: u64,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
nonce: String,
|
nonce: String,
|
||||||
|
#[serde(default)]
|
||||||
|
tip: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
const LICENSE_FILE: &'static str = ".license.txt";
|
const LICENSE_FILE: &'static str = ".license.txt";
|
||||||
@ -129,6 +131,9 @@ fn check_email(machine: String, email: String, version: String) -> ResultType<u6
|
|||||||
write_lic(&p.machine);
|
write_lic(&p.machine);
|
||||||
}
|
}
|
||||||
log::info!("License OK");
|
log::info!("License OK");
|
||||||
|
if !p.tip.is_empty() {
|
||||||
|
log::info!("{}", p.tip);
|
||||||
|
}
|
||||||
let mut wait = p.next_check_time;
|
let mut wait = p.next_check_time;
|
||||||
if wait == 0 {
|
if wait == 0 {
|
||||||
wait = 3600 * 24 * 30;
|
wait = 3600 * 24 * 30;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user