about summary refs log tree commit diff stats
path: root/roster.c
diff options
context:
space:
mode:
Diffstat (limited to 'roster.c')
-rw-r--r--roster.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/roster.c b/roster.c
index 30f14b09..5b42376a 100644
--- a/roster.c
+++ b/roster.c
@@ -156,6 +156,14 @@ int main(int argc, char **argv)
     xmpp_conn_set_pass(conn, argv[2]);
 
     /* initiate connection */
+    char *domain = strchr(argv[1], '@');
+    domain++;
+
+    printf("Domain = %s\n", domain);
+
+    if (strcmp(domain, "framework") == 0)
+        xmpp_conn_disable_tls(conn);
+
     xmpp_connect_client(conn, NULL, 0, conn_handler, ctx);
 
     printf("CONNECT CLIENT CALLED\n");