Browse Source

add Yggdrasil address without NTCP2

pull/1634/head
orignal 4 years ago
parent
commit
1bc3de8df4
  1. 4
      daemon/Daemon.cpp

4
daemon/Daemon.cpp

@ -197,12 +197,12 @@ 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);

Loading…
Cancel
Save