[gupnp/wip/ipv6-everywhere: 3/7] ServiceInfo: Add examples to type and id
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp/wip/ipv6-everywhere: 3/7] ServiceInfo: Add examples to type and id
- Date: Tue, 21 Jun 2022 16:28:29 +0000 (UTC)
commit 63d2d79250e754fd4794a925a2f37b6ed09e2665
Author: Jens Georg <mail jensge org>
Date: Sun Jun 19 23:48:08 2022 +0200
ServiceInfo: Add examples to type and id
I always mix up what is what, so just add it to the docs so I don't have
to check the specs each time -.-
libgupnp/gupnp-network-manager.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/libgupnp/gupnp-network-manager.c b/libgupnp/gupnp-network-manager.c
index 2c192fa..5a7de01 100644
--- a/libgupnp/gupnp-network-manager.c
+++ b/libgupnp/gupnp-network-manager.c
@@ -192,8 +192,14 @@ create_loopback_context (gpointer data)
context = g_initable_new (GUPNP_TYPE_CONTEXT,
NULL,
&error,
- "interface", LOOPBACK_IFACE,
- "port", port,
+ "interface",
+ LOOPBACK_IFACE,
+ "port",
+ port,
+ "address-family",
+ gupnp_context_manager_get_socket_family (
+ GUPNP_CONTEXT_MANAGER (manager)),
+
NULL);
if (error) {
g_warning ("Error creating GUPnP context: %s\n",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]