[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Print address too when we say we cannot bind/listen



Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv23480/src/or

Modified Files:
	connection.c 
Log Message:
Print address too when we say we cannot bind/listen

Index: connection.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/connection.c,v
retrieving revision 1.406
retrieving revision 1.407
diff -u -d -r1.406 -r1.407
--- connection.c	6 Oct 2005 22:18:01 -0000	1.406
+++ connection.c	7 Oct 2005 18:48:31 -0000	1.407
@@ -522,13 +522,13 @@
 #endif
 
   if (bind(s,(struct sockaddr *)&bindaddr,sizeof(bindaddr)) < 0) {
-    log_fn(LOG_WARN, "Could not bind to port %u: %s", usePort,
+    log_fn(LOG_WARN, "Could not bind to %s:%u: %s", address, usePort,
            tor_socket_strerror(tor_socket_errno(s)));
     goto err;
   }
 
   if (listen(s,SOMAXCONN) < 0) {
-    log_fn(LOG_WARN, "Could not listen on port %u: %s", usePort,
+    log_fn(LOG_WARN, "Could not listen on %s%u: %s", address, usePort,
            tor_socket_strerror(tor_socket_errno(s)));
     goto err;
   }