aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authoropentrade <[email protected]>2021-05-15 14:06:22 +0800
committeropentrade <[email protected]>2021-05-15 14:06:22 +0800
commitf2c4ab136ca0fc7501fe0408d9b17dfa47294d91 (patch)
tree85e28a2814818f512006cc064988e1004e9c0163 /src
parent411e963187c2d9c3efe76a4c0bcfe9a473bc7a06 (diff)
downloadrustdesk-server-f2c4ab136ca0fc7501fe0408d9b17dfa47294d91.tar.gz
rustdesk-server-f2c4ab136ca0fc7501fe0408d9b17dfa47294d91.zip
remove license file if fail
Diffstat (limited to 'src')
-rw-r--r--src/lic.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lic.rs b/src/lic.rs
index 2a0d132..ee6858e 100644
--- a/src/lic.rs
+++ b/src/lic.rs
@@ -116,6 +116,7 @@ fn check_email(machine: String, email: String, version: String) -> ResultType<u6
if resp.reason_phrase == "OK" {
let p: Post = serde_json::from_str(&resp.as_str()?)?;
if !p.status.is_empty() {
+ std::fs::remove_file(LICENSE_FILE).ok();
bail!("{}", p.status);
}
if p.nonce.is_empty() {