Changeset a2873c4


Ignore:
Timestamp:
Apr 27, 2016 3:48:42 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
9f31b1f
Parents:
967074c
Message:

i2ptunnel: Fix can't connect error message for servers when
in router context, like we did for clients earlier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelServer.java

    r967074c ra2873c4  
    244244                if (portNum == null)
    245245                    portNum = "7654";
    246                 String msg = "Unable to connect to the router at " + getTunnel().host + ':' + portNum +
     246                String msg;
     247                if (getTunnel().getContext().isRouterContext())
     248                    msg = "Unable to build tunnels for the server at " + remoteHost.getHostAddress() + ':' + remotePort;
     249                else
     250                    msg = "Unable to connect to the router at " + getTunnel().host + ':' + portNum +
    247251                             " and build tunnels for the server at " + remoteHost.getHostAddress() + ':' + remotePort;
    248252                if (++retries < MAX_RETRIES) {
Note: See TracChangeset for help on using the changeset viewer.