Fix ignore TLS errors

This commit is contained in:
Kevin Yue
2024-01-22 23:20:25 -05:00
parent c3bd7aeb93
commit 9655b735a1
5 changed files with 9 additions and 7 deletions

View File

@@ -115,7 +115,7 @@ pub(crate) async fn run() {
eprintln!("{} --fix-openssl {}\n", args[0], args[1..].join(" "));
}
if err.contains("certificate verify failed") {
if err.contains("certificate verify failed") && !cli.ignore_tls_errors {
eprintln!(
"\nRe-run it with the `--ignore-tls-errors` option to ignore the certificate error, e.g.:\n"
);