From 5ff34b93c0b92ab1665e27d410a8a67b8c10d40f Mon Sep 17 00:00:00 2001 From: R4SAS Date: Sun, 17 Jul 2022 23:34:32 +0300 Subject: [PATCH] print detected MTU Signed-off-by: R4SAS --- libi2pd/util.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libi2pd/util.cpp b/libi2pd/util.cpp index a3eefffe..4c66e07b 100644 --- a/libi2pd/util.cpp +++ b/libi2pd/util.cpp @@ -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;