aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2011-06-28 00:03:50 +0800
committerWill Thompson <will.thompson@collabora.co.uk>2011-06-28 00:49:07 +0800
commit60d6f85f560b4c958085c8f759f519363a05e779 (patch)
tree1feb7eb6cb740d4e41cdd4292273e3c1b6b396de
parent9d13e5abfc9802832cc0e81cfa96663ffdd4744d (diff)
downloadgsoc2013-empathy-60d6f85f560b4c958085c8f759f519363a05e779.tar
gsoc2013-empathy-60d6f85f560b4c958085c8f759f519363a05e779.tar.gz
gsoc2013-empathy-60d6f85f560b4c958085c8f759f519363a05e779.tar.bz2
gsoc2013-empathy-60d6f85f560b4c958085c8f759f519363a05e779.tar.lz
gsoc2013-empathy-60d6f85f560b4c958085c8f759f519363a05e779.tar.xz
gsoc2013-empathy-60d6f85f560b4c958085c8f759f519363a05e779.tar.zst
gsoc2013-empathy-60d6f85f560b4c958085c8f759f519363a05e779.zip
Set 'server' parameter on GTalk accounts.
This stops us depending on properly-configured SRV records. 'fallback-servers' is not good enough in this situation: • foo.com's XMPP stuff is served by Google Apps; • your router breaks SRV requests; • foo.com resolves to 1.2.3.4 which has a (different) XMPP server listening on port 5222. This may seem far-fetched, but this happened to two completely different people, both hosted with Dreamhost. https://bugzilla.gnome.org/show_bug.cgi?id=653510
-rw-r--r--libempathy-gtk/empathy-protocol-chooser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-protocol-chooser.c b/libempathy-gtk/empathy-protocol-chooser.c
index b2e4314de..6a97de64c 100644
--- a/libempathy-gtk/empathy-protocol-chooser.c
+++ b/libempathy-gtk/empathy-protocol-chooser.c
@@ -600,7 +600,8 @@ empathy_protocol_chooser_create_account_settings (EmpathyProtocolChooser *self)
empathy_account_settings_set_icon_name_async (settings, "im-google-talk",
NULL, NULL);
-
+ empathy_account_settings_set_string (settings, "server",
+ extra_certificate_identities[0]);
empathy_account_settings_set_strv (settings, "fallback-servers",
fallback_servers);