Re: IPv6 in Java on FreeBSD

[email protected]
Newsgroups gmane.os.freebsd.devel.java
Message-ID <[email protected]>
Hi,

There are also security implications to this, see inet6(4).

> On 19 Feb 2025, at 13:25, Harald Eilertsen <[email protected]> wrote:
> 
> Hi Bob,
> 
> On Wed, Feb 19, 2025 at 12:26:17PM +0000, Bob Bishop wrote:
>> I would just point out that back in history Java used to want mapped
>> IPv4 (net.inet6.ip6.v6only=0) if IPv6 was enabled; most people don’t
>> want that which may be why IPv6 support hasn’t been enabled.
> 
> That's really useful feedback! And the observation is still correct.
> Java will by default clear the IPV6_V6ONLY flag on sockets when IPv6 is
> available and requested (the default.)
> 
> I've made a quick test, where I patch Java to leave the setting alone,
> but otherwise leave IPv6 enabled. That will allow the sysctl setting to
> decide whether to use dual-socket or only accept IPv6 connections on the
> socket.
> 
> Personally I think that makes sense. I'll update the PR's accordingly.
> 
> Take care!
> Harald
> 

--
Bob Bishop
[email protected]
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EARECAB0WIQR+a6Wh87I/iYwcbE+8xpPppLfFvwUCZ7XehgAKCRC8xpPppLfF
v09CAJ4p0Xu4UOsoxM9rj1tbNVKjaUrfQwCePG2OMlPYcYuHVGlE/NzsD2QxOu8=
=5fw9
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.