disabled ipv4 preference to enable ipv6-only networks like freifunk

pull/1/head
orbiter 11 years ago
parent f3be1930cb
commit 70ba74b23a

@ -622,7 +622,7 @@ public final class yacy {
if (OS.isWindows) headless = false;
if (args.length >= 1 && args[0].toLowerCase().equals("-gui")) headless = false;
System.setProperty("java.awt.headless", headless ? "true" : "false");
System.setProperty("java.net.preferIPv4Stack", "true");
// System.setProperty("java.net.preferIPv4Stack", "true"); // DO NOT PREFER IPv6, i.e. freifunk uses ipv6 only and host resolving does not work
String s = ""; for (final String a: args) s += a + " ";
yacyRelease.startParameter = s.trim();

Loading…
Cancel
Save