change minimal MTU size

This commit is contained in:
orignal 2020-02-04 13:32:16 -05:00
parent 969f9aa436
commit cbedebc9dd

View File

@ -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);