]> code.citadel.org Git - citadel.git/blobdiff - citadel/textclient/citadel.c
* text client - tell the user the actual hostname and IP address of the Citadel serve...
[citadel.git] / citadel / textclient / citadel.c
index b1abf294794d19638ebf0b99088580df4b5a808d..407b47ae9469bfeb27f5a9b56ea8264d2d84bac0 100644 (file)
@@ -1576,6 +1576,11 @@ int main(int argc, char **argv)
                error_printf("Can't connect: %s\n", strerror(errno));
                logoff(NULL, 3);
        }
+
+       if (!(ipc->isLocal)) {
+               sln_printf("Connected to %s [%s].\n", ipc->ip_hostname, ipc->ip_address);
+       }
+
 #if defined(HAVE_CURSES_H) && !defined(DISABLE_CURSES)
        CtdlIPC_SetNetworkStatusCallback(ipc, wait_indicator);
 #endif