From 2fba05569684980691e7b6fbe7b8283f12b525fc Mon Sep 17 00:00:00 2001 From: jrandom Date: Mon, 6 Dec 2004 02:08:02 +0000 Subject: [PATCH] 2004-12-05 jrandom * Explicitly use "127.0.0.1" to bind the I2CP listener, not the JVM's getLocalhost call --- history.txt | 6 +++++- router/java/src/net/i2p/router/RouterVersion.java | 4 ++-- .../src/net/i2p/router/client/ClientListenerRunner.java | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/history.txt b/history.txt index 5c3b24ad42..06d26312b6 100644 --- a/history.txt +++ b/history.txt @@ -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 diff --git a/router/java/src/net/i2p/router/RouterVersion.java b/router/java/src/net/i2p/router/RouterVersion.java index e54faf13ba..884f9a6e02 100644 --- a/router/java/src/net/i2p/router/RouterVersion.java +++ b/router/java/src/net/i2p/router/RouterVersion.java @@ -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); diff --git a/router/java/src/net/i2p/router/client/ClientListenerRunner.java b/router/java/src/net/i2p/router/client/ClientListenerRunner.java index e23136d127..d09aaedd75 100644 --- a/router/java/src/net/i2p/router/client/ClientListenerRunner.java +++ b/router/java/src/net/i2p/router/client/ClientListenerRunner.java @@ -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) {