From 895aac7b33c6b516bc7bee80819db8c3348e674d Mon Sep 17 00:00:00 2001 From: Brendan Allan Date: Fri, 18 Aug 2023 15:17:37 +0800 Subject: [PATCH] handle openssl 3 properly --- cli/src/binaries/platform.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cli/src/binaries/platform.rs b/cli/src/binaries/platform.rs index c6c53deb..542fcc1b 100644 --- a/cli/src/binaries/platform.rs +++ b/cli/src/binaries/platform.rs @@ -126,7 +126,10 @@ fn parse_openssl_version(v: &str) -> String { let r = Regex::new(r"^OpenSSL\s(\d+\.\d+)\.\d"); let matches = r.unwrap().captures(v).unwrap(); if matches.len() > 0 { - matches.get(1).unwrap().as_str().to_string() + ".x" + match matches.get(1).unwrap().as_str() { + "3.1" => "3.0.x".to_string(), + version => format!("{version}.x"), + } } else { "1.1.x".to_string() }