diff options
author | opentrade <[email protected]> | 2021-05-15 14:06:22 +0800 |
---|---|---|
committer | opentrade <[email protected]> | 2021-05-15 14:06:22 +0800 |
commit | f2c4ab136ca0fc7501fe0408d9b17dfa47294d91 (patch) | |
tree | 85e28a2814818f512006cc064988e1004e9c0163 /src | |
parent | 411e963187c2d9c3efe76a4c0bcfe9a473bc7a06 (diff) | |
download | rustdesk-server-f2c4ab136ca0fc7501fe0408d9b17dfa47294d91.tar.gz rustdesk-server-f2c4ab136ca0fc7501fe0408d9b17dfa47294d91.zip |
remove license file if fail
Diffstat (limited to 'src')
-rw-r--r-- | src/lic.rs | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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() { |