Browse Source

fix limits when not specififed

pull/983/head
Jeff Becker 7 years ago
parent
commit
91eb2b2c4a
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
  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