Changeset a90b8aa


Ignore:
Timestamp:
Jun 1, 2011 12:04:23 AM (9 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
a3dd538
Parents:
313ee79b
Message:

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.

Location:
installer/resources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • installer/resources/runplain.sh

    r313ee79b ra90b8aa  
    1818JAVA=java
    1919
    20 JAVAOPTS="-Djava.library.path=$ {I2P}:${I2P}/lib -Di2p.dir.base=${I2P} -DloggerFilenameOverride=logs/log-router-@.txt"
     20JAVAOPTS="-Djava.net.preferIPv4Stack=true -Djava.library.path=$ {I2P}:${I2P}/lib -Di2p.dir.base=${I2P} -DloggerFilenameOverride=logs/log-router-@.txt"
    2121nohup ${JAVA} -cp "${CP}" ${JAVAOPTS} net.i2p.router.RouterLaunch > /dev/null 2>&1 &
    2222echo $! > "${I2PTEMP}/router.pid"
  • installer/resources/wrapper.config

    r313ee79b ra90b8aa  
    6161wrapper.java.additional.4=-Di2p.dir.base="$INSTALL_PATH"
    6262wrapper.java.additional.4.stripquotes=TRUE
     63wrapper.java.additional.5=-Djava.net.preferIPv4Stack=true
    6364# Jetty says this is a security risk
    6465# Uncommenting this won't help as the router forces it to true
Note: See TracChangeset for help on using the changeset viewer.