mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Don't force IPv4 network stack if IPv6 is specifically requested (#4547)
This commit is contained in:
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());
|
||||
|
||||
Reference in new issue
Block a user