* print the ip-address too if we fail to bind a server port.
authorWilfried Göesgens <willi@citadel.org>
Thu, 7 Jun 2007 20:27:31 +0000 (20:27 +0000)
committerWilfried Göesgens <willi@citadel.org>
Thu, 7 Jun 2007 20:27:31 +0000 (20:27 +0000)
citadel/serv_extensions.c

index 64b425c6b1bd4438ca1068136cf2d68a46c86b70..c3ec9fd07f2709ef8d3a3442bf065b29e90ddc29 100644 (file)
@@ -754,7 +754,8 @@ void CtdlRegisterServiceHook(int tcp_port,
                                              tcp_port,
                                              config.c_maxsessions, 
                                              &error);
-               snprintf(message, SIZ, "TCP port %d: ", tcp_port);
+               snprintf(message, SIZ, "TCP port %s:%d: ", 
+                        config.c_ip_addr, tcp_port);
        }
 
        if (newfcn->msock > 0) {