[Bug 3526] Config option AddressFamily has no effect?

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Mon Oct 16 09:32:34 AEDT 2023


--- Comment #6 from nix-muell at gmx.net ---
(In reply to Damien Miller from comment #5)
> Created attachment 3741 [details]
> filter addresses by AddressFamily at connect time
> Please give this patch a try

This made ssh skip any address (connect only if an address family has
been specified).
It works exactly as expected, though, when I changed
`options.address_family != -1` to
`options.address_family != 0`
Tested on macOS and Debian 12.

Looking at the code in ssh.c and readconf.c, I too expected -1 to be
correct and certainly do not understand what's going on there.

You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.

More information about the openssh-bugs mailing list