mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-11-26 19:22:29 +00:00
fix: remove TLS name override when no SRV record is present
this could have been an issue in cases where there was previously a SRV record, but later got removed
This commit is contained in:
parent
1f313c6807
commit
11187b3fad
@ -564,6 +564,13 @@ async fn get_srv_destination(delegated_hostname: String) -> (FedDest, Option<Ins
|
|||||||
(override_ip.iter().collect(), force_port.unwrap_or(8448)),
|
(override_ip.iter().collect(), force_port.unwrap_or(8448)),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
// Removing in case there was previously a SRV record
|
||||||
|
services()
|
||||||
|
.globals
|
||||||
|
.tls_name_override
|
||||||
|
.write()
|
||||||
|
.unwrap()
|
||||||
|
.remove(&delegated_hostname);
|
||||||
warn!("Using SRV record, but could not resolve to IP");
|
warn!("Using SRV record, but could not resolve to IP");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user