Browse Source

removed trivial check

pull/1515/head
orignal 5 years ago
parent
commit
50a77fedca
  1. 7
      libi2pd/I2NPProtocol.cpp

7
libi2pd/I2NPProtocol.cpp

@ -318,12 +318,7 @@ namespace i2p
{ {
if (maxNumTransitTunnels > 0 && g_MaxNumTransitTunnels != maxNumTransitTunnels) if (maxNumTransitTunnels > 0 && g_MaxNumTransitTunnels != maxNumTransitTunnels)
{ {
if (maxNumTransitTunnels <= 65535) { LogPrint (eLogDebug, "I2NP: Max number of transit tunnels set to ", maxNumTransitTunnels);
LogPrint (eLogDebug, "I2NP: Max number of transit tunnels set to ", maxNumTransitTunnels);
} else {
LogPrint (eLogWarning, "I2NP: Requested number of transit tunnels exceeds 65535, limited");
maxNumTransitTunnels = 65535;
}
g_MaxNumTransitTunnels = maxNumTransitTunnels; g_MaxNumTransitTunnels = maxNumTransitTunnels;
} }
} }

Loading…
Cancel
Save