diff options
Diffstat (limited to 'roster.c')
-rw-r--r-- | roster.c | 8 |
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"); |