From 665a914dc3f1ae16d05ca35a4c1d244e442e3751 Mon Sep 17 00:00:00 2001 From: orignal Date: Wed, 13 Jul 2022 20:08:57 -0400 Subject: [PATCH] set max MTU for ipv4 --- libi2pd/SSU2Session.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libi2pd/SSU2Session.cpp b/libi2pd/SSU2Session.cpp index 64b39b6f..80d6e795 100644 --- a/libi2pd/SSU2Session.cpp +++ b/libi2pd/SSU2Session.cpp @@ -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)