]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/commitdiff
tlsproxy.c: Add more debug output.
authorSimon Ruderich <simon@ruderich.org>
Sun, 27 Feb 2011 01:47:56 +0000 (02:47 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sun, 27 Feb 2011 01:47:56 +0000 (02:47 +0100)
tlsproxy.c

index 39b68df25632a98e153b1a4fbd2119cfe1b3cc50..8ca12f2fa38deadb69efcf5f735d8eb320baf94f 100644 (file)
@@ -120,6 +120,10 @@ int main(int argc, char **argv) {
         return EXIT_FAILURE;
     }
 
         return EXIT_FAILURE;
     }
 
+#ifdef DEBUG
+    printf("Listening for connections on port %d.\n", port);
+#endif
+
     for (;;) {
         /* Accept new connection. */
         client_socket = accept(server_socket, NULL, NULL);
     for (;;) {
         /* Accept new connection. */
         client_socket = accept(server_socket, NULL, NULL);