Skip to content

Commit

Permalink
fix: use lower case domain string when using resolve and `resolve_t…
Browse files Browse the repository at this point in the history
…o_addrs` (#2235)
  • Loading branch information
Alvenix committed Apr 4, 2024
1 parent b4c491a commit e3a1565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/async_impl/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1744,7 +1744,7 @@ impl ClientBuilder {
pub fn resolve_to_addrs(mut self, domain: &str, addrs: &[SocketAddr]) -> ClientBuilder {
self.config
.dns_overrides
.insert(domain.to_string(), addrs.to_vec());
.insert(domain.to_ascii_lowercase(), addrs.to_vec());
self
}

Expand Down

0 comments on commit e3a1565

Please sign in to comment.