fix: Ensure codeflow returns at correct locations

This commit is contained in:
theS1LV3R committed 2026-07-03 10:59:10 +02:00
1 parent f075e1ce5b
commit da03baa063
1 file changed
+6 -7
+6 -7
View File
@@ -172,18 +172,18 @@ async fn resolve_3_well_known(
debug!("3: A .well-known file is available");
*host = add_port_to_hostname(&delegated).uri_string();
// 3.1 - If <delegated> is of IP:port format, connect to that,
// 3.1 - If <delegated> is IP:port, connect to that,
// or IP with default port if no port provided (8448)
if let Some(host_and_port) = get_ip_with_port(&delegated) {
debug!("3.1: IP with port in .well-known file");
return Ok(host_and_port);
}
// 3.2 - If <delegated> is not an IP and a port is present, lookup IP for
// hostname and connect
// 3.2 - If <delegated> is hostname:port, lookup IP for hostname and connect
if let Some(pos) = &delegated.find(':') {
self.resolve_3_2_hostname_port(cache, &delegated, *pos)
.await?;
return self
.resolve_3_2_hostname_port(cache, &delegated, *pos)
.await;
}
// 3.3 - If <delegated> is not an IP and there is no port, lookup SRV
@@ -191,8 +191,7 @@ async fn resolve_3_well_known(
// see steps 3.1 and 3.2)
trace!("Delegated hostname has no port, querying SRV");
if let Some(overrider) = self.query_srv_record(&delegated).await? {
self.resolve_3_3_use_srv(cache, &delegated, overrider)
.await?;
return self.resolve_3_3_use_srv(cache, &delegated, overrider).await;
}
self.resolve_3_4_use_default_port(cache, delegated).await