mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Print address too when we say we cannot bind/listen
svn:r5213
This commit is contained in:
parent
4c7113d26a
commit
14934dece2
@ -522,13 +522,13 @@ connection_create_listener(const char *bindaddress, uint16_t bindport,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (bind(s,(struct sockaddr *)&bindaddr,sizeof(bindaddr)) < 0) {
|
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)));
|
tor_socket_strerror(tor_socket_errno(s)));
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (listen(s,SOMAXCONN) < 0) {
|
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)));
|
tor_socket_strerror(tor_socket_errno(s)));
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user