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

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

i2ptunnel: Fix can't connect error message for servers when

in router context, like we did for clients earlier
parent 967074c2
No related branches found
No related tags found
No related merge requests found
...@@ -243,7 +243,11 @@ public class I2PTunnelServer extends I2PTunnelTask implements Runnable { ...@@ -243,7 +243,11 @@ public class I2PTunnelServer extends I2PTunnelTask implements Runnable {
String portNum = getTunnel().port; String portNum = getTunnel().port;
if (portNum == null) if (portNum == null)
portNum = "7654"; portNum = "7654";
String msg = "Unable to connect to the router at " + getTunnel().host + ':' + portNum + String msg;
if (getTunnel().getContext().isRouterContext())
msg = "Unable to build tunnels for the server at " + remoteHost.getHostAddress() + ':' + remotePort;
else
msg = "Unable to connect to the router at " + getTunnel().host + ':' + portNum +
" and build tunnels for the server at " + remoteHost.getHostAddress() + ':' + remotePort; " and build tunnels for the server at " + remoteHost.getHostAddress() + ':' + remotePort;
if (++retries < MAX_RETRIES) { if (++retries < MAX_RETRIES) {
msg += ", retrying in " + (RETRY_DELAY / 1000) + " seconds"; msg += ", retrying in " + (RETRY_DELAY / 1000) + " seconds";
......
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