summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2018-12-01 20:49:08 +0100
committerJens Georg <mail@jensge.org>2018-12-01 20:49:08 +0100
commit985086b915458207aee398358a1cbc97dba920aa (patch)
treeb019fa902855bd5535f2bbfec2ec260a08e87f23 /tools
parent755dcc330e159f773dc107facdffc91c33c864c1 (diff)
downloadgssdp-985086b915458207aee398358a1cbc97dba920aa.tar.gz
sniffer: Remove address family hack
Diffstat (limited to 'tools')
-rw-r--r--tools/gssdp-device-sniffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gssdp-device-sniffer.c b/tools/gssdp-device-sniffer.c
index dda8dd6..55abfba 100644
--- a/tools/gssdp-device-sniffer.c
+++ b/tools/gssdp-device-sniffer.c
@@ -748,7 +748,7 @@ init_upnp (void)
client = g_initable_new (GSSDP_TYPE_CLIENT,
NULL,
&error,
- "host-ip", prefer_v6 ? "::" : NULL,
+ "address-family", prefer_v6 ? G_SOCKET_FAMILY_IPV6 : G_SOCKET_FAMILY_IPV4,
"interface", interface,
NULL);
if (error) {