Commit 059ff52c authored by Jens Georg's avatar Jens Georg
Browse files

Windows CM: Pre-filter address family

Together with the changes in SimpleCM, this should enable v6 support in
Windows.
parent 39c0651d
Pipeline #413544 passed with stages
in 3 minutes and 14 seconds
......@@ -61,9 +61,12 @@ gupnp_windows_context_manager_get_interfaces
PIP_ADAPTER_ADDRESSES adapters_addresses;
PIP_ADAPTER_ADDRESSES adapter;
ULONG family = gupnp_context_manager_get_socket_family (
GUPNP_CONTEXT_MANAGER (manager));
do {
adapters_addresses = (PIP_ADAPTER_ADDRESSES) g_malloc0 (size);
ret = GetAdaptersAddresses (AF_UNSPEC,
ret = GetAdaptersAddresses (family,
flags,
NULL,
adapters_addresses,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment