Browse Source

set max MTU for ipv4

pull/1776/head
orignal 2 years ago
parent
commit
665a914dc3
  1. 1
      libi2pd/SSU2Session.cpp

1
libi2pd/SSU2Session.cpp

@ -1902,6 +1902,7 @@ namespace transport @@ -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)

Loading…
Cancel
Save