mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
fix limits when not specififed
This commit is contained in:
parent
42ec6db746
commit
91eb2b2c4a
@ -156,7 +156,7 @@ namespace transport
|
||||
uint16_t softLimit, hardLimit;
|
||||
i2p::config::GetOption("limits.ntcpsoft", softLimit);
|
||||
i2p::config::GetOption("limits.ntcphard", hardLimit);
|
||||
if(softLimit >= hardLimit)
|
||||
if(softLimit > 0 && hardLimit > 0 && softLimit >= hardLimit)
|
||||
{
|
||||
LogPrint(eLogError, "ntcp soft limit must be less than ntcp hard limit");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user