forked from I2P_Developers/i2p.i2p
i2ptunnel: Fix can't connect error message for servers when
in router context, like we did for clients earlier
This commit is contained in:
@@ -243,7 +243,11 @@ public class I2PTunnelServer extends I2PTunnelTask implements Runnable {
|
||||
String portNum = getTunnel().port;
|
||||
if (portNum == null)
|
||||
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;
|
||||
if (++retries < MAX_RETRIES) {
|
||||
msg += ", retrying in " + (RETRY_DELAY / 1000) + " seconds";
|
||||
|
Reference in New Issue
Block a user