mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
lenght and number of tunnels for HTTP Proxy
This commit is contained in:
parent
9d8d4c09c6
commit
11b90d2113
3 changed files with 24 additions and 4 deletions
|
@ -53,7 +53,19 @@ namespace client
|
|||
{
|
||||
i2p::data::PrivateKeys keys;
|
||||
if(LoadPrivateKeys (keys, httpProxyKeys))
|
||||
localDestination = CreateNewLocalDestination (keys, false);
|
||||
{
|
||||
std::map<std::string, std::string> params;
|
||||
std::string value;
|
||||
if (i2p::config::GetOption("httpproxy.inbound.length", value))
|
||||
params["inbound.length"] = value;
|
||||
if (i2p::config::GetOption("httpproxy.inbound.quantity", value))
|
||||
params["inbound.quantity"] = value;
|
||||
if (i2p::config::GetOption("httpproxy.outbound.length", value))
|
||||
params["outbound.length"] = value;
|
||||
if (i2p::config::GetOption("httpproxy.outbound.quantity", value))
|
||||
params["outbound.quantity"] = value;
|
||||
localDestination = CreateNewLocalDestination (keys, false, ¶ms);
|
||||
}
|
||||
else
|
||||
LogPrint(eLogError, "Clients: failed to load HTTP Proxy key");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue