2004-12-05 jrandom

* Explicitly use "127.0.0.1" to bind the I2CP listener, not the JVM's
      getLocalhost call
This commit is contained in:
jrandom
2004-12-06 02:08:02 +00:00
committed by zzz
parent 88bb176f3b
commit 2fba055696
3 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,8 @@
$Id: history.txt,v 1.96 2004/12/05 10:32:34 jrandom Exp $
$Id: history.txt,v 1.97 2004/12/05 19:54:08 jrandom Exp $
2004-12-05 jrandom
* Explicitly use "127.0.0.1" to bind the I2CP listener, not the JVM's
getLocalhost call
2004-12-05 jrandom
* Default the I2CP listener to localhost only, unless overridden by

View File

@ -15,9 +15,9 @@ import net.i2p.CoreVersion;
*
*/
public class RouterVersion {
public final static String ID = "$Revision: 1.101 $ $Date: 2004/12/05 10:32:33 $";
public final static String ID = "$Revision: 1.102 $ $Date: 2004/12/05 19:54:07 $";
public final static String VERSION = "0.4.2.2";
public final static long BUILD = 5;
public final static long BUILD = 6;
public static void main(String args[]) {
System.out.println("I2P Router version: " + VERSION);
System.out.println("Router ID: " + RouterVersion.ID);

View File

@ -65,7 +65,7 @@ public class ClientListenerRunner implements Runnable {
if (_bindAllInterfaces)
_socket = new ServerSocket(_port);
else
_socket = new ServerSocket(_port, 5, InetAddress.getLocalHost());
_socket = new ServerSocket(_port, 0, InetAddress.getByName("127.0.0.1"));
curDelay = 0;
while (_running) {