1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 08:14:15 +00:00

print detected MTU

Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2022-07-17 23:34:32 +03:00
parent 098fdf0596
commit 5ff34b93c0
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2

View File

@ -195,6 +195,8 @@ namespace net
{
auto result = pAddresses->Mtu;
FREE(pAddresses);
pAddresses = nullptr;
LogPrint(eLogInfo, "NetIface: GetMTU(): Using ", result, " bytes for IPv4");
return result;
}
pUnicast = pUnicast->Next;
@ -259,6 +261,7 @@ namespace net
auto result = pAddresses->Mtu;
FREE(pAddresses);
pAddresses = nullptr;
LogPrint(eLogInfo, "NetIface: GetMTU(): Using ", result, " bytes for IPv6");
return result;
}
pUnicast = pUnicast->Next;