This commit is contained in:
Mateusz Gruszczyński committed 2026-11-10 00:15:50 +01:00
1 parent 2789991452
commit e260612ef9
60 files changed
+69 -339

No files matched your search

-1
View File
@@ -108,7 +108,6 @@ pub(crate) fn compile_backend_with_timeout(
})
}
/// Backend copy used only by active health checks that probe a different port.
pub(crate) fn health_probe_backend(backend: &Backend, port: Option<u16>) -> Result<Option<Backend>> {
let Some(port) = port else { return Ok(None) };
let mut url = Url::parse(&backend.url).context("invalid backend URL")?;
-4
View File
@@ -139,8 +139,6 @@ impl Snapshot {
}
None
}
/// Specificity of the vhost frontend matching `host` (an exact name beats any wildcard,
/// a longer wildcard suffix beats a shorter one).
pub fn frontend_rank(&self, host: &str, local: SocketAddr, tls: bool) -> Option<usize> {
let mut rank = None;
Self::find_host_pattern(host, |pattern| {
@@ -158,7 +156,6 @@ impl Snapshot {
});
rank
}
/// Specificity of the redirect host matching `host` and `path` (see `frontend_rank`).
pub fn redirect_rank(
&self,
host: &str,
@@ -186,7 +183,6 @@ impl Snapshot {
});
rank
}
/// Specificity of the 404 host matching `host` (see `frontend_rank`).
pub fn not_found_rank(&self, host: &str, local: SocketAddr, tls: bool) -> Option<usize> {
let mut rank = None;
Self::find_host_pattern(host, |pattern| {