common: networking: fix IPv6(-only) support for Java

_Really_ not sure how anyone can take this piece of software even
remotely seriously.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2024-05-26 02:21:28 +02:00
parent e1666f9ea9
commit f9ee1532ab
Signed by: c8h4
GPG key ID: 73D5E7FDEE3DE49A

View file

@ -9,4 +9,12 @@
logRefusedConnections = false;
};
};
environment.variables = {
# https://bugs.openjdk.org/browse/JDK-8170568
# https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/net/doc-files/net-properties.html
# Apparently, Java does not seem to need to properly implement technology
# introduced 25(!) years ago. And people call this mess "enterprise-ready" ..
_JAVA_OPTIONS = "-Djava.net.preferIPv6Addresses=system";
};
}