mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
don't set proxy if ntcp2 is disabled
This commit is contained in:
parent
3792bb4928
commit
744b25190a
2 changed files with 3 additions and 3 deletions
|
@ -174,9 +174,9 @@ namespace transport
|
|||
std::string ntcp2proxy; i2p::config::GetOption("ntcp2.proxy", ntcp2proxy);
|
||||
i2p::http::URL proxyurl;
|
||||
// create NTCP2. TODO: move to acceptor
|
||||
if (enableNTCP2)
|
||||
if (enableNTCP2 || i2p::context.SupportsMesh ())
|
||||
{
|
||||
if(!ntcp2proxy.empty())
|
||||
if(!ntcp2proxy.empty() && enableNTCP2)
|
||||
{
|
||||
if(proxyurl.parse(ntcp2proxy))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue