mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-23 13:57:16 +01:00
Fixes to GetMTUWindows and GetMTUWindowsIpv6 (thanks mlt).
This commit is contained in:
parent
c3ec75756d
commit
2bde6fc13b
4
util.cpp
4
util.cpp
|
@ -562,7 +562,7 @@ namespace net {
|
||||||
return fallback;
|
return fallback;
|
||||||
}
|
}
|
||||||
|
|
||||||
int GetMTUWindowsIpv6(sockaddr_in inputAddress, int fallback)
|
int GetMTUWindowsIpv6(sockaddr_in6 inputAddress, int fallback)
|
||||||
{
|
{
|
||||||
ULONG outBufLen = 0;
|
ULONG outBufLen = 0;
|
||||||
PIP_ADAPTER_ADDRESSES pAddresses = nullptr;
|
PIP_ADAPTER_ADDRESSES pAddresses = nullptr;
|
||||||
|
@ -645,7 +645,7 @@ namespace net {
|
||||||
return GetMTUWindowsIpv6(inputAddress, fallback);
|
return GetMTUWindowsIpv6(inputAddress, fallback);
|
||||||
} else {
|
} else {
|
||||||
LogPrint(eLogError, "GetMTU() has failed: address family is not supported");
|
LogPrint(eLogError, "GetMTU() has failed: address family is not supported");
|
||||||
return result;
|
return fallback;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue