mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
change minimal MTU size
This commit is contained in:
parent
969f9aa436
commit
cbedebc9dd
@ -324,7 +324,7 @@ namespace net
|
|||||||
|
|
||||||
int GetMTU(const boost::asio::ip::address& localAddress)
|
int GetMTU(const boost::asio::ip::address& localAddress)
|
||||||
{
|
{
|
||||||
const int fallback = 576; // fallback MTU
|
int fallback = localAddress.is_v6 () ? 1280 : 620; // fallback MTU
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
return GetMTUWindows(localAddress, fallback);
|
return GetMTUWindows(localAddress, fallback);
|
||||||
|
Loading…
Reference in New Issue
Block a user