Repository navigation
Add IPv4/IPv6 address selection support - #1097
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| let stream = match load_daemon_proxy()? { | ||
| Some(proxy) => connect_via_proxy(addr, &proxy, timeout)?, |
There was a problem hiding this comment.
Honor address mode when connecting via proxy
The new AddressMode flag is only forwarded to connect_direct, so it never influences connections that go through RSYNC_PROXY. When --ipv4 or --ipv6 is supplied, users expect the client to avoid addresses of the opposite family, regardless of whether a proxy is in use. In the proxy branch we still call TcpStream::connect((proxy.host.as_str(), proxy.port)), which lets the OS pick the family and can still attempt IPv6 despite --ipv4 (or vice‑versa), leading to hangs or connection failures on single‑stack networks. The proxy path should resolve and filter proxy addresses in the same way as connect_direct, or otherwise enforce the selected family.
Useful? React with 👍 / 👎.
Summary
Testing
cargo test