hack around the fact that the TLS cert is not a wildcard

This commit is contained in:
Conrad Ludgate
2025-07-17 16:23:14 +01:00
parent ccea44becd
commit 5a293242f8

View File

@@ -62,6 +62,9 @@ impl ComputeUserInfoMaybeEndpoint {
pub(crate) fn endpoint_sni(sni: &str, common_names: &HashSet<String>) -> Option<EndpointId> {
let (subdomain, common_name) = sni.split_once('.')?;
if subdomain.starts_with("instance-") {
return Some(EndpointId::from(subdomain));
}
if !common_names.contains(common_name) {
return None;
}