diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-07-14 23:04:31 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-07-14 23:04:31 +0000 |
commit | f86a1e634f3307c8804b3d8d24d6901689bcb594 (patch) | |
tree | c0831770caa28cc17299f402eb047b63ce8e6a12 /src | |
parent | e94f95a7160dcc9a064ce0159c063e8f44095a7d (diff) | |
download | tor-f86a1e634f3307c8804b3d8d24d6901689bcb594.tar.gz tor-f86a1e634f3307c8804b3d8d24d6901689bcb594.zip |
fix opening listener log msg
svn:r4565
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index ec710a6c2d..30d7fdb446 100644 --- a/src/or/connection.c +++ b/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; |