[vinagre] Revert "Accept IPv6 addresses"



commit 3f59e2bf50245893e75351521594e52884f7f3aa
Author: David King <amigadave amigadave com>
Date:   Mon Oct 19 09:45:18 2015 +0100

    Revert "Accept IPv6 addresses"
    
    This reverts commit 1b2df81a539dbdb629466cd1f670545d1b4768d6.

 vinagre/vinagre-connection.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/vinagre/vinagre-connection.c b/vinagre/vinagre-connection.c
index 812ae92..3a3b9ac 100644
--- a/vinagre/vinagre-connection.c
+++ b/vinagre/vinagre-connection.c
@@ -582,7 +582,6 @@ vinagre_connection_split_string (const gchar *uri,
   gchar **server, **url;
   gint    lport;
   gchar  *lhost;
-  gboolean is_ipv6;
   gchar   ipv6_host[255] = {0,};
   VinagreProtocol *ext;
 
@@ -619,11 +618,6 @@ vinagre_connection_split_string (const gchar *uri,
       return FALSE;
     }
 
-  is_ipv6 = g_strstr_len (lhost, -1, ":") != NULL;
-
-  if (is_ipv6)
-    lhost = g_strconcat ("[", lhost, "]", NULL);
-
   if (lhost[0] == '[')
     {
       int i;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]