fixed zero-hops tunnels

This commit is contained in:
orignal 2016-06-29 21:37:17 -04:00
parent f6e988d6fd
commit c50105493a
3 changed files with 24 additions and 10 deletions

View file

@ -31,7 +31,7 @@ namespace client
{
int len = i2p::util::lexical_cast<int>(it->second, inboundTunnelLen);
if (len > 0)
if (len >= 0)
{
inboundTunnelLen = len;
}
@ -42,7 +42,7 @@ namespace client
{
int len = i2p::util::lexical_cast<int>(it->second, outboundTunnelLen);
if (len > 0)
if (len >= 0)
{
outboundTunnelLen = len;
}