mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
Fix IPv6 parsing in _g_uri_parse_authority, add _g_uri_from_authority
Fixes connections to IPv6 address literals. https://bugzilla.gnome.org/show_bug.cgi?id=629259
This commit is contained in:
@@ -372,7 +372,7 @@ g_socket_address_connectable_proxy_enumerate (GSocketConnectable *connectable)
|
||||
g_object_get (connectable, "address", &addr, "port", &port, NULL);
|
||||
|
||||
ip = g_inet_address_to_string (addr);
|
||||
uri = g_strdup_printf ("none://%s:%u", ip, port);
|
||||
uri = _g_uri_from_authority ("none", ip, port, NULL);
|
||||
|
||||
addr_enum = g_object_new (G_TYPE_PROXY_ADDRESS_ENUMERATOR,
|
||||
"connectable", connectable,
|
||||
|
Reference in New Issue
Block a user