mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 04:04:16 +00:00
add Yggdrasil address without NTCP2
This commit is contained in:
parent
374e0cbbc3
commit
1bc3de8df4
@ -197,13 +197,13 @@ namespace util
|
|||||||
if (!addr.is_unspecified () && addr != boost::asio::ip::address_v6::any ())
|
if (!addr.is_unspecified () && addr != boost::asio::ip::address_v6::any ())
|
||||||
i2p::context.UpdateNTCP2V6Address (addr); // set ipv6 address if configured
|
i2p::context.UpdateNTCP2V6Address (addr); // set ipv6 address if configured
|
||||||
}
|
}
|
||||||
if (ygg)
|
|
||||||
i2p::context.UpdateNTCP2V6Address (yggaddr);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
i2p::context.PublishNTCP2Address (port, false); // unpublish
|
i2p::context.PublishNTCP2Address (port, false); // unpublish
|
||||||
}
|
}
|
||||||
|
if (ygg)
|
||||||
|
i2p::context.UpdateNTCP2V6Address (yggaddr);
|
||||||
|
|
||||||
bool transit; i2p::config::GetOption("notransit", transit);
|
bool transit; i2p::config::GetOption("notransit", transit);
|
||||||
i2p::context.SetAcceptsTunnels (!transit);
|
i2p::context.SetAcceptsTunnels (!transit);
|
||||||
uint16_t transitTunnels; i2p::config::GetOption("limits.transittunnels", transitTunnels);
|
uint16_t transitTunnels; i2p::config::GetOption("limits.transittunnels", transitTunnels);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user