set MTU if local address is specified explicitly. update MTU for ipv6 if not set

This commit is contained in:
orignal 2022-07-24 15:24:01 -04:00
parent 09aa96e486
commit dbb9295063
3 changed files with 72 additions and 18 deletions

View file

@ -144,6 +144,7 @@ namespace garlic
void SetSupportsV6 (bool supportsV6);
void SetSupportsV4 (bool supportsV4);
void SetSupportsMesh (bool supportsmesh, const boost::asio::ip::address_v6& host);
void SetMTU (int mtu, bool v4);
i2p::crypto::NoiseSymmetricState& GetCurrentNoiseState () { return m_CurrentNoiseState; };
void UpdateNTCP2V6Address (const boost::asio::ip::address& host); // called from Daemon. TODO: remove