mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
badwidth parameter
This commit is contained in:
parent
123e6b7de4
commit
3ccc8d9508
4 changed files with 30 additions and 1 deletions
10
Daemon.cpp
10
Daemon.cpp
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue