This commit is contained in:
2022-09-24 10:47:43 +00:00
committed by GitHub
parent a47e3da2ed
commit fd1c62033c

View File

@@ -129,7 +129,7 @@ impl Main {
get_helper().update(cmd.clone(), self.settings.as_ref().unwrap().clone());
match std::env::var("SSL_CERT_FILE") {
Ok(s) => {
if s.len() == 0 || std::path::Path::new(&s).exists() {
if s.len() == 0 || !std::path::Path::new(&s).exists() {
let cert = utils::get_exe_path_else_current().join("cert.pem");
if cert.exists() {
std::env::set_var("SSL_CERT_FILE", cert);