Browse Source

fix: remove TLS name override when no SRV record is present (but properly)

The previous attempt only did so when no IP could be resolved, which isn't enough
merge-requests/711/head
Matthias Ahouansou 2 years ago
parent
commit
d95345377b
No known key found for this signature in database
  1. 7
      src/api/server_server.rs

7
src/api/server_server.rs

@ -583,6 +583,13 @@ async fn get_srv_destination(delegated_hostname: String) -> (FedDest, Option<Ins
(add_port_to_hostname(&delegated_hostname), Some(timestamp))
}
} else {
// Removing in case there was previously a SRV record
services()
.globals
.tls_name_override
.write()
.unwrap()
.remove(&delegated_hostname);
debug!("No SRV records found");
(add_port_to_hostname(&delegated_hostname), None)
}

Loading…
Cancel
Save