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

Skip to content
Snippets Groups Projects
Commit 076558d4 authored by zzz's avatar zzz
Browse files

* i2ptunnel: Fix wrong server IP in log message

parent fb5d0cd7
No related branches found
No related tags found
No related merge requests found
...@@ -207,7 +207,7 @@ public class I2PTunnelServer extends I2PTunnelTask implements Runnable { ...@@ -207,7 +207,7 @@ public class I2PTunnelServer extends I2PTunnelTask implements Runnable {
if (sockMgr == null) { if (sockMgr == null) {
// try to make this error sensible as it will happen... // try to make this error sensible as it will happen...
String msg = "Unable to connect to the router at " + getTunnel().host + ':' + portNum + String msg = "Unable to connect to the router at " + getTunnel().host + ':' + portNum +
" and build tunnels for the server at " + getTunnel().listenHost + ':' + port; " and build tunnels for the server at " + host.getHostAddress() + ':' + port;
if (++retries < MAX_RETRIES) { if (++retries < MAX_RETRIES) {
this.l.log(msg + ", retrying in " + (RETRY_DELAY / 1000) + " seconds"); this.l.log(msg + ", retrying in " + (RETRY_DELAY / 1000) + " seconds");
_log.error(msg + ", retrying in " + (RETRY_DELAY / 1000) + " seconds"); _log.error(msg + ", retrying in " + (RETRY_DELAY / 1000) + " seconds");
...@@ -223,7 +223,7 @@ public class I2PTunnelServer extends I2PTunnelTask implements Runnable { ...@@ -223,7 +223,7 @@ public class I2PTunnelServer extends I2PTunnelTask implements Runnable {
sockMgr.setName("Server"); sockMgr.setName("Server");
getTunnel().addSession(sockMgr.getSession()); getTunnel().addSession(sockMgr.getSession());
l.log("Tunnels ready for server at " + getTunnel().listenHost + ':' + port); l.log("Tunnels ready for server at " + host.getHostAddress() + ':' + port);
notifyEvent("openServerResult", "ok"); notifyEvent("openServerResult", "ok");
open = true; open = true;
} }
......
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