[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] fix opening listener log msg
Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv12914/src/or
Modified Files:
connection.c
Log Message:
fix opening listener log msg
Index: connection.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/connection.c,v
retrieving revision 1.384
retrieving revision 1.385
diff -u -d -r1.384 -r1.385
--- connection.c 14 Jul 2005 22:56:17 -0000 1.384
+++ connection.c 14 Jul 2005 23:04:31 -0000 1.385
@@ -475,6 +475,8 @@
bindaddr.sin_family = AF_INET;
bindaddr.sin_port = htons((uint16_t) usePort);
+ log_fn(LOG_NOTICE, "Opening listener on %s:%d", address, usePort);
+
s = socket(PF_INET,SOCK_STREAM,IPPROTO_TCP);
if (s < 0) {
log_fn(LOG_WARN,"Socket creation failed.");
@@ -847,7 +849,6 @@
i = 0;
SMARTLIST_FOREACH(launch, struct config_line_t *, cfg,
{
- log_fn(LOG_NOTICE, "Opening listener on %s:%d", cfg->value, port_option);
if (connection_create_listener(cfg->value, (uint16_t) port_option,
type)<0)
i = -1;