mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 16:34:13 +00:00
set max MTU for ipv4
This commit is contained in:
parent
8feac310af
commit
665a914dc3
@ -1902,6 +1902,7 @@ namespace transport
|
|||||||
if (addr && addr->ssu)
|
if (addr && addr->ssu)
|
||||||
{
|
{
|
||||||
int mtu = addr->ssu->mtu;
|
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))
|
if (m_Address && m_Address->ssu && (!mtu || m_Address->ssu->mtu < mtu))
|
||||||
mtu = m_Address->ssu->mtu;
|
mtu = m_Address->ssu->mtu;
|
||||||
if (mtu)
|
if (mtu)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user