I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit a90b8aa0 authored by kytv's avatar kytv
Browse files

Prefer IPv4 connections

In some distributions (such as Debian, for example) net.ipv6.bindv6only=1 is
set by default. In some configurations, networking in java applications will be
broken. Someone recently came into #i2p experiencing this very problem.

This change closes #464.
parent 313ee79b
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,6 @@ I2PTEMP="%SYSTEM_java_io_tmpdir"
export CP="${I2P}" ; for j in "${I2P}/lib/*" ; do export CP="${CP}:${j}" ; done;
JAVA=java
JAVAOPTS="-Djava.library.path=$ {I2P}:${I2P}/lib -Di2p.dir.base=${I2P} -DloggerFilenameOverride=logs/log-router-@.txt"
JAVAOPTS="-Djava.net.preferIPv4Stack=true -Djava.library.path=$ {I2P}:${I2P}/lib -Di2p.dir.base=${I2P} -DloggerFilenameOverride=logs/log-router-@.txt"
nohup ${JAVA} -cp "${CP}" ${JAVAOPTS} net.i2p.router.RouterLaunch > /dev/null 2>&1 &
echo $! > "${I2PTEMP}/router.pid"
......@@ -60,6 +60,7 @@ wrapper.java.additional.2=-Dorg.mortbay.http.Version.paranoid=true
wrapper.java.additional.3=-Dorg.mortbay.xml.XmlParser.NotValidating=true
wrapper.java.additional.4=-Di2p.dir.base="$INSTALL_PATH"
wrapper.java.additional.4.stripquotes=TRUE
wrapper.java.additional.5=-Djava.net.preferIPv4Stack=true
# Jetty says this is a security risk
# Uncommenting this won't help as the router forces it to true
# If you really need this, you have to set it in jetty.xml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment