From aafcd555519fbd1673b02d71e4101d14ba8e8d50 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Wed, 2 Jun 2010 16:54:28 +0000 Subject: [PATCH] * More logging. Also display an error to the user if we get a citserver greeting other than 200 or 571. --- webcit/serv_func.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webcit/serv_func.c b/webcit/serv_func.c index 3b8655f06..1069858e5 100644 --- a/webcit/serv_func.c +++ b/webcit/serv_func.c @@ -182,6 +182,7 @@ int GetConnected (void) WCC->connected = 1; StrBuf_ServGetln(Buf); /* get the server greeting */ short_status = GetServerStatus(Buf, &Status); + lprintf(9, "\033[32mGREETING: %s\033[0m\n", ChrPtr(Buf)); FreeStrBuf(&Buf); /* Server isn't ready for us? */ @@ -214,8 +215,9 @@ int GetConnected (void) } locate_host(WCC->Hdr->HR.browser_host, WCC->Hdr->http_sock); } - if (WCC->serv_info == NULL) + if (WCC->serv_info == NULL) { WCC->serv_info = get_serv_info(WCC->Hdr->HR.browser_host, WCC->Hdr->HR.user_agent); + } if (WCC->serv_info == NULL){ begin_burst(); wc_printf(_("Received unexpected answer from Citadel server; bailing out.")); -- 2.30.2