Don't force IPv4 network stack if IPv6 is specifically requested (#4547)

This commit is contained in:
Ben Staddon authored and LexManos committed 2017-11-26 19:20:01 -08:00
1 parent 44d0e9f05d
commit b215d90589
2 files changed
+13 -2

No files matched your search

@@ -46,7 +46,10 @@ public class FMLTweaker implements ITweaker {
public FMLTweaker()
{
System.setProperty("java.net.preferIPv4Stack", "true"); //Lets do this as early as possible. Vanilla does it in Main.main
if (System.getProperty("java.net.preferIPv4Stack") == null)
{
System.setProperty("java.net.preferIPv4Stack", "true");
}
try
{
System.setSecurityManager(new FMLSecurityManager());