This commit is contained in:
Jun Kurihara 2025-04-23 17:23:57 +09:00
commit 42630d3b53
No known key found for this signature in database
GPG key ID: 9C5AF0A526862FEF

View file

@ -65,7 +65,7 @@ impl SingleServerCertsKeys {
.cert_keys
.clone()
.iter()
.find_map(|k| if let Ok(sk) = any_supported_type(k) { Some(sk) } else { None })
.find_map(|k| any_supported_type(k).ok())
.ok_or_else(|| RpxyCertError::InvalidCertificateAndKey)?;
let cert = self.certs.iter().map(|c| Certificate::from(c.to_vec())).collect::<Vec<_>>();