vinagre: add patch to fix connection issues when using explicit port
fix is committed upstream: https://bugzilla.gnome.org/show_bug.cgi?id=757513
This commit is contained in:
parent
958d663014
commit
5279228ba7
2 changed files with 30 additions and 1 deletions
29
srcpkgs/vinagre/patches/fix-ipv6-interpretation.patch
Normal file
29
srcpkgs/vinagre/patches/fix-ipv6-interpretation.patch
Normal file
|
@ -0,0 +1,29 @@
|
|||
diff -upr vinagre-3.18.1.orig/vinagre/vinagre-connection.c vinagre-3.18.1/vinagre/vinagre-connection.c
|
||||
--- vinagre/vinagre-connection.c.orig 2015-09-25 13:35:42.000000000 +0200
|
||||
+++ vinagre/vinagre-connection.c 2015-11-03 11:26:15.058608241 +0100
|
||||
@@ -582,7 +582,7 @@ vinagre_connection_split_string (const g
|
||||
gchar **server, **url;
|
||||
gint lport;
|
||||
gchar *lhost;
|
||||
- gboolean is_ipv6;
|
||||
+ gchar *tmphost;
|
||||
gchar ipv6_host[255] = {0,};
|
||||
VinagreProtocol *ext;
|
||||
|
||||
@@ -619,10 +619,12 @@ vinagre_connection_split_string (const g
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
- is_ipv6 = g_strstr_len (lhost, -1, ":") != NULL;
|
||||
-
|
||||
- if (is_ipv6)
|
||||
- lhost = g_strconcat ("[", lhost, "]", NULL);
|
||||
+ /* Assume an hostname contains more than 1 colons as an ipv6 address */
|
||||
+ if(lhost[0] != '[') {
|
||||
+ tmphost = g_strstr_len (lhost, -1, ":");
|
||||
+ if(tmphost && g_strstr_len (tmphost+1, -1, ":") != NULL)
|
||||
+ lhost = g_strconcat ("[", lhost, "]", NULL);
|
||||
+ }
|
||||
|
||||
if (lhost[0] == '[')
|
||||
{
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'vinagre'
|
||||
pkgname=vinagre
|
||||
version=3.18.1
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-schemas-compile"
|
||||
hostmakedepends="pkg-config intltool itstool gnome-doc-utils"
|
||||
|
|
Loading…
Reference in a new issue