mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
fixed zero-hops tunnels
This commit is contained in:
parent
f6e988d6fd
commit
c50105493a
3 changed files with 24 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue