1
0
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:
orignal 2021-02-06 18:23:50 -05:00
parent 374e0cbbc3
commit 1bc3de8df4

View File

@ -197,13 +197,13 @@ namespace util
if (!addr.is_unspecified () && addr != boost::asio::ip::address_v6::any ())
i2p::context.UpdateNTCP2V6Address (addr); // set ipv6 address if configured
}
if (ygg)
i2p::context.UpdateNTCP2V6Address (yggaddr);
}
else
i2p::context.PublishNTCP2Address (port, false); // unpublish
}
if (ygg)
i2p::context.UpdateNTCP2V6Address (yggaddr);
bool transit; i2p::config::GetOption("notransit", transit);
i2p::context.SetAcceptsTunnels (!transit);
uint16_t transitTunnels; i2p::config::GetOption("limits.transittunnels", transitTunnels);