You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(client): allow both IPv6 and IPv4 local addrs
Currently HttpConnector::set_local_address method accepts a single argument. Server might not support IPv6 or IPv4.
Therefore, the only solution at the moment is to manually perform DNS resolution and pick appropriate local address family. This is inefficient, as leads to 2 DNS lookups per request.
This commit allows specifying both IPv4 and IPv6, so connector can decide which one to use based on DNS resolution results.
Closes: #2169
BREAKING CHANGE: `HttpConnector::set_local_address(&mut self, addr: Option<IpAddr>)` signature has been changed to `HttpConnector::set_local_address(&mut self, addr_ipv4: Option<Ipv4Addr>, addr_ipv6: Option<Ipv6Addr>)`
0 commit comments