Skip to content

Commit

Permalink
Fix jruby#775
Browse files Browse the repository at this point in the history
Prefer IPv4 by default.
  • Loading branch information
BanzaiMan committed Jun 27, 2013
1 parent 148dc64 commit f323c80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Binary file modified bin/jruby.bash
Binary file not shown.
3 changes: 3 additions & 0 deletions bin/jruby.sh
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ if [[ -z "$JAVA_ENCODING" ]]; then
java_args="${java_args} -Dfile.encoding=UTF-8"
fi

# prefer IPv4 to IPv6; see https://github.com/jruby/jruby/issues/775
java_argsk=("${java_args[@]" "-Djava.net.preferIPv4Stack=true")
# Append the rest of the arguments
ruby_args="${ruby_args} $@"
Expand Down

0 comments on commit f323c80

Please sign in to comment.