mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-12-26 20:43:48 +03:00
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
This commit is contained in:
parent
75322af8c7
commit
d95345377b
1 changed files with 7 additions and 0 deletions
|
@ -583,6 +583,13 @@ async fn get_srv_destination(delegated_hostname: String) -> (FedDest, Option<Ins
|
||||||
(add_port_to_hostname(&delegated_hostname), Some(timestamp))
|
(add_port_to_hostname(&delegated_hostname), Some(timestamp))
|
||||||
}
|
}
|
||||||
} else {
|
} 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");
|
debug!("No SRV records found");
|
||||||
(add_port_to_hostname(&delegated_hostname), None)
|
(add_port_to_hostname(&delegated_hostname), None)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue