mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-03 19:42:55 +00:00
hack around the fact that the TLS cert is not a wildcard
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user