--- a/libpurple/protocols/jabber/si.c Tue Nov 05 21:07:41 2019 -0500
+++ b/libpurple/protocols/jabber/si.c Wed Nov 06 04:54:32 2019 +0000
@@ -39,7 +39,7 @@
-#define STREAMHOST_CONNECT_TIMEOUT 15
+#define STREAMHOST_CONNECT_TIMEOUT 5 #define ENABLE_FT_THUMBNAILS 0
@@ -358,13 +358,17 @@
((host = purple_xmlnode_get_attrib(streamhost, "host")) &&
(port = purple_xmlnode_get_attrib(streamhost, "port")) &&
(portnum = atoi(port))))) {
- JabberBytestreamsStreamhost *sh = g_new0(JabberBytestreamsStreamhost, 1);
- sh->jid = g_strdup(jid);
- sh->host = g_strdup(host);
- sh->zeroconf = g_strdup(zeroconf);
- /* If there were a lot of these, it'd be worthwhile to prepend and reverse. */
- jsx->streamhosts = g_list_append(jsx->streamhosts, sh);
+ if(purple_strequal(host, "0.0.0.0") == FALSE) { + JabberBytestreamsStreamhost *sh = g_new0(JabberBytestreamsStreamhost, 1); + sh->jid = g_strdup(jid); + sh->host = g_strdup(host); + sh->zeroconf = g_strdup(zeroconf); + /* If there were a lot of these, it'd be worthwhile to prepend and reverse. */ + jsx->streamhosts = g_list_append(jsx->streamhosts, sh);