mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-23 17:36:37 +02:00
round MTU to multiple of 16 for SSU1
This commit is contained in:
parent
665a914dc3
commit
14a6947b02
1 changed files with 2 additions and 0 deletions
|
@ -434,6 +434,8 @@ namespace i2p
|
||||||
mtu = maxMTU;
|
mtu = maxMTU;
|
||||||
LogPrint(eLogWarning, "Router: MTU dropped to upper limit of ", maxMTU, " bytes");
|
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;
|
if (address->ssu) address->ssu->mtu = mtu;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue