From 14a6947b021a74c7ec0bc7fedb0dace5253ecd42 Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 14 Jul 2022 07:58:55 -0400 Subject: [PATCH] round MTU to multiple of 16 for SSU1 --- libi2pd/RouterContext.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libi2pd/RouterContext.cpp b/libi2pd/RouterContext.cpp index de845b3b..404e14de 100644 --- a/libi2pd/RouterContext.cpp +++ b/libi2pd/RouterContext.cpp @@ -434,6 +434,8 @@ namespace i2p mtu = maxMTU; LogPrint(eLogWarning, "Router: MTU dropped to upper limit of ", maxMTU, " bytes"); } + else if (mtu && !address->IsSSU2 ()) // SSU1 + mtu = (mtu >> 4) << 4; // round to multiple of 16 if (address->ssu) address->ssu->mtu = mtu; } }