Browse Source

fix opening listener log msg

svn:r4565
Nick Mathewson 20 years ago
parent
commit
f86a1e634f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/or/connection.c

+ 2 - 1
src/or/connection.c

@@ -475,6 +475,8 @@ connection_create_listener(const char *bindaddress, uint16_t bindport, int type)
   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 @@ retry_listeners(int type, struct config_line_t *cfg,
   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;