Browse Source

Merge pull request #983 from majestrate/i2np-transport-limits

fix limits when not specififed
pull/987/head
Jeff 7 years ago committed by GitHub
parent
commit
bec24e052c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      libi2pd/Transports.cpp

2
libi2pd/Transports.cpp

@ -156,7 +156,7 @@ namespace transport
uint16_t softLimit, hardLimit; uint16_t softLimit, hardLimit;
i2p::config::GetOption("limits.ntcpsoft", softLimit); i2p::config::GetOption("limits.ntcpsoft", softLimit);
i2p::config::GetOption("limits.ntcphard", hardLimit); 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"); LogPrint(eLogError, "ntcp soft limit must be less than ntcp hard limit");
return; return;

Loading…
Cancel
Save