mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
There is typo in GetAdaptersAddresses windows library. It should be iphlpapi.dll
(cherry picked from commit 61fc2bf2e9719eb7ca9c56b6e186df2f79f05de7)
This commit is contained in:
parent
2530e7c630
commit
891adda9f1
2
evutil.c
2
evutil.c
@ -698,7 +698,7 @@ evutil_check_ifaddrs(void)
|
||||
"GetAdaptersInfo", but that's deprecated; let's just try
|
||||
GetAdaptersAddresses and fall back to connect+getsockname.
|
||||
*/
|
||||
HMODULE lib = evutil_load_windows_system_library_(TEXT("ihplapi.dll"));
|
||||
HMODULE lib = evutil_load_windows_system_library_(TEXT("iphlpapi.dll"));
|
||||
GetAdaptersAddresses_fn_t fn;
|
||||
ULONG size, res;
|
||||
IP_ADAPTER_ADDRESSES *addresses = NULL, *address;
|
||||
|
Loading…
x
Reference in New Issue
Block a user