Skip to content

Commit cf84481

Browse files
committed
Prefer IPv4 stack by default.
1 parent b240748 commit cf84481

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

argparser.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,10 @@ bool ArgParser::parseArgs(int argc, char *argv[]) {
362362
}
363363
}
364364

365+
// prefer IPv4 to IPv6
366+
// see https://github.com/jruby/jruby/issues/775
367+
javaOptions.push_back("-Djava.net.preferIPv4Stack=true");
368+
365369
return true;
366370
}
367371

0 commit comments

Comments
 (0)