[empathy] Set chat.facebook.com:443 as fallback server
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Set chat.facebook.com:443 as fallback server
- Date: Thu, 15 Mar 2012 09:43:40 +0000 (UTC)
commit 94520441d0d22f6fc8361770f66c1a1ac27e011c
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Mar 15 10:25:24 2012 +0100
Set chat.facebook.com:443 as fallback server
Some nasty firewalls block the port 5222, Facebook servers allow connection to
the port 443 as a fallback in this case.
https://bugzilla.gnome.org/show_bug.cgi?id=672120
goa-mc-plugin/mcp-account-manager-goa.c | 2 ++
libempathy-gtk/empathy-protocol-chooser.c | 6 ++++++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/goa-mc-plugin/mcp-account-manager-goa.c b/goa-mc-plugin/mcp-account-manager-goa.c
index 280485d..af82e47 100644
--- a/goa-mc-plugin/mcp-account-manager-goa.c
+++ b/goa-mc-plugin/mcp-account-manager-goa.c
@@ -137,6 +137,8 @@ get_tp_parameters (GoaAccount *account)
PARAM ("param-account", "chat.facebook.com");
PARAM ("param-server", "chat.facebook.com");
PARAM ("param-require-encryption", "true");
+ PARAM ("param-fallback-servers",
+ "chat.facebook.com:443");
}
else if (!tp_strdiff (type, "windows_live"))
{
diff --git a/libempathy-gtk/empathy-protocol-chooser.c b/libempathy-gtk/empathy-protocol-chooser.c
index 7adacf4..5e26112 100644
--- a/libempathy-gtk/empathy-protocol-chooser.c
+++ b/libempathy-gtk/empathy-protocol-chooser.c
@@ -620,12 +620,18 @@ empathy_protocol_chooser_create_account_settings (EmpathyProtocolChooser *self)
}
else if (!tp_strdiff (service, "facebook"))
{
+ gchar *fallback_servers[] = {
+ "chat.facebook.com:443",
+ NULL };
+
empathy_account_settings_set_icon_name_async (settings, "im-facebook",
NULL, NULL);
empathy_account_settings_set_boolean (settings, "require-encryption",
TRUE);
empathy_account_settings_set_string (settings, "server",
"chat.facebook.com");
+ empathy_account_settings_set_strv (settings, "fallback-servers",
+ fallback_servers);
}
out:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]