From 482156c8fce4dce3ce9e098d808c515fa9ea2d87 Mon Sep 17 00:00:00 2001
From: Pavel Grunt <pgrunt@redhat.com>
Date: Fri, 29 Jul 2016 14:16:03 +0200
Subject: [PATCH 18/19] session: Fix IPv6 by using g_network_address_parse
It supports quoting the address with []
Regression since ea37f06eaa11b6307c797895aeb85d87d142625a
Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=1361478
(cherry picked from commit 5a301b201be77c0ece71640ba99e92733a93f950)
---
src/spice-session.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/spice-session.c b/src/spice-session.c
index cc4b614..860461f 100644
--- a/src/spice-session.c
+++ b/src/spice-session.c
@@ -2125,7 +2125,7 @@ static gboolean open_host_idle_cb(gpointer data)
#endif
} else {
SPICE_DEBUG("open host %s:%d", s->host, open_host->port);
- address = g_network_address_new(s->host, open_host->port);
+ address = g_network_address_parse(s->host, open_host->port, &open_host->error);
}
if (address == NULL || open_host->error != NULL) {
--
2.9.2