2 ===================================================================
3 RCS file: /cvs/gnome/drivel/src/network.c,v
4 retrieving revision 1.50
5 diff -p -u -r1.50 network.c
6 --- src/network.c 30 May 2005 03:25:35 -0000 1.50
7 +++ src/network.c 1 Jun 2005 00:20:42 -0000
8 @@ -219,7 +219,23 @@ setup_proxies (DrivelClient *dc, CURL *s
12 - url = g_strdup (dc->proxy_url);
15 + gchar *colon1, *colon2;
17 + /* Check for an IPv6 URL by searching for at least two colons (:) */
18 + colon1 = strstr (dc->proxy_url, ":");
20 + colon2 = strstr (colon1 + 1, ":");
24 + url = g_strdup_printf ("[%s]", dc->proxy_url);
26 + url = g_strdup (dc->proxy_url);
30 port = dc->proxy_port;
31 use_auth = dc->proxy_auth;
32 g_mutex_unlock (net_mutex);