0.34.13_cleaup_code
This commit is contained in:
1 parent
ec46a96a29
commit
5c2e50ec06
87 files changed
+4890
-1338
No files matched your search
@@ -132,7 +132,9 @@ pub fn import(directory: &Path, name: &str, cert: PathBuf, key: PathBuf) -> Resu
|
||||
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
pub enum ExternalPairDeployment {
|
||||
Unchanged { covered_hosts: Vec<String> },
|
||||
Unchanged {
|
||||
covered_hosts: Vec<String>,
|
||||
},
|
||||
Staged {
|
||||
cert_file: String,
|
||||
key_file: String,
|
||||
|
||||
@@ -358,7 +358,10 @@ pub fn compile(settings: &Settings, directory: Option<&Path>) -> Result<Option<A
|
||||
.strip_prefix("*.")
|
||||
.map(|base| format!("rustproxy-wildcard-check.{base}"))
|
||||
.unwrap_or_else(|| host.clone());
|
||||
if !settings.forced_mismatches.contains(&(cert.id.clone(), host.clone())) {
|
||||
if !settings
|
||||
.forced_mismatches
|
||||
.contains(&(cert.id.clone(), host.clone()))
|
||||
{
|
||||
let mut checker = ResolvesServerCertUsingSni::new();
|
||||
checker
|
||||
.add(&validation_name, key.clone())
|
||||
|
||||
Reference in new issue
Block a user