badwidth parameter

This commit is contained in:
orignal 2015-03-19 11:14:21 -04:00
parent 123e6b7de4
commit 3ccc8d9508
4 changed files with 30 additions and 1 deletions

View file

@ -76,7 +76,15 @@ namespace i2p
i2p::context.SetSupportsV6 (i2p::util::config::GetArg("-v6", 0));
i2p::context.SetFloodfill (i2p::util::config::GetArg("-floodfill", 0));
auto bandwidth = i2p::util::config::GetArg("-badnwidth", "");
if (bandwidth.length () > 0)
{
if (bandwidth[0] > 'L')
i2p::context.SetHighBandwidth ();
else
i2p::context.SetLowBandwidth ();
}
LogPrint("CMD parameters:");
for (int i = 0; i < argc; ++i)
LogPrint(i, " ", argv[i]);