Browse Source

print detected MTU

Signed-off-by: R4SAS <r4sas@i2pmail.org>
pull/1786/head
R4SAS 2 years ago
parent
commit
5ff34b93c0
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 3
      libi2pd/util.cpp

3
libi2pd/util.cpp

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

Loading…
Cancel
Save