[gupnp/wip/ipv6-everywhere: 3/4] SimpleContextManager: Pass on address family




commit 39c0651d99731873bf9c4f51c3cb3879d9fb7b95
Author: Jens Georg <mail jensge org>
Date:   Mon Jun 20 00:04:12 2022 +0200

    SimpleContextManager: Pass on address family
    
    Part of #10

 libgupnp/gupnp-simple-context-manager.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/libgupnp/gupnp-simple-context-manager.c b/libgupnp/gupnp-simple-context-manager.c
index 6e4cd3a..895cc17 100644
--- a/libgupnp/gupnp-simple-context-manager.c
+++ b/libgupnp/gupnp-simple-context-manager.c
@@ -65,8 +65,14 @@ create_and_signal_context (const char                *interface,
         context = g_initable_new (GUPNP_TYPE_CONTEXT,
                                   NULL,
                                   &error,
-                                  "interface", interface,
-                                  "port", port,
+                                  "interface",
+                                  interface,
+                                  "port",
+                                  port,
+                                  "address-family",
+                                  gupnp_context_manager_get_socket_family (
+                                          GUPNP_CONTEXT_MANAGER (manager)),
+
                                   NULL);
         if (error != NULL) {
                 if (!(error->domain == GSSDP_ERROR &&


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]