]> git.pld-linux.org Git - packages/drivel.git/blob - drivel-ipv6proxy.patch
- added
[packages/drivel.git] / drivel-ipv6proxy.patch
1 Index: src/network.c
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
9         else
10                 pass = NULL;
11         userpwd = NULL;
12 -       url = g_strdup (dc->proxy_url);
13 +       if (dc->proxy_url)
14 +       {
15 +               gchar *colon1, *colon2;
16 +               
17 +               /* Check for an IPv6 URL by searching for at least two colons (:) */
18 +               colon1 = strstr (dc->proxy_url, ":");
19 +               if (colon1)
20 +                       colon2 = strstr (colon1 + 1, ":");
21 +               else
22 +                       colon2 = NULL;
23 +               if (colon2)
24 +                       url = g_strdup_printf ("[%s]", dc->proxy_url);
25 +               else
26 +                       url = g_strdup (dc->proxy_url);
27 +       }
28 +       else
29 +               url = NULL;
30         port = dc->proxy_port;
31         use_auth = dc->proxy_auth;
32         g_mutex_unlock (net_mutex);
This page took 0.110471 seconds and 3 git commands to generate.