diff options
author | Jens Georg <mail@jensge.org> | 2022-06-20 00:07:30 +0200 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2022-06-22 19:55:48 +0200 |
commit | 059ff52c3d59384ebfb077463faf44338ff9a973 (patch) | |
tree | b6297d24aef184edfe35c4dbb1c5de85b7d6ab1c /libgupnp | |
parent | 39c0651d99731873bf9c4f51c3cb3879d9fb7b95 (diff) | |
download | gupnp-059ff52c3d59384ebfb077463faf44338ff9a973.tar.gz |
Windows CM: Pre-filter address family
Together with the changes in SimpleCM, this should enable v6 support in
Windows.
Diffstat (limited to 'libgupnp')
-rw-r--r-- | libgupnp/gupnp-windows-context-manager.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libgupnp/gupnp-windows-context-manager.c b/libgupnp/gupnp-windows-context-manager.c index 662c009..b7af31a 100644 --- a/libgupnp/gupnp-windows-context-manager.c +++ b/libgupnp/gupnp-windows-context-manager.c @@ -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, |