set max MTU for ipv4

This commit is contained in:
orignal 2022-07-13 20:08:57 -04:00
parent 8feac310af
commit 665a914dc3

View File

@ -1902,6 +1902,7 @@ namespace transport
if (addr && addr->ssu)
{
int mtu = addr->ssu->mtu;
if (!mtu && addr->IsV4 ()) mtu = SSU2_MAX_PACKET_SIZE;
if (m_Address && m_Address->ssu && (!mtu || m_Address->ssu->mtu < mtu))
mtu = m_Address->ssu->mtu;
if (mtu)