Do not log a notice on every socks connection

This commit is contained in:
Nick Mathewson 2015-01-14 09:54:40 -05:00
parent 220f419da1
commit 518b0b3c5f

View File

@ -1500,8 +1500,8 @@ connection_handle_listener_read(connection_t *conn, int new_type)
newconn->address = tor_dup_addr(&addr); newconn->address = tor_dup_addr(&addr);
if (new_type == CONN_TYPE_AP && conn->socket_family != AF_UNIX) { if (new_type == CONN_TYPE_AP && conn->socket_family != AF_UNIX) {
log_notice(LD_NET, "New SOCKS connection opened from %s.", log_info(LD_NET, "New SOCKS connection opened from %s.",
fmt_and_decorate_addr(&addr)); fmt_and_decorate_addr(&addr));
TO_ENTRY_CONN(newconn)->socks_request->socks_prefer_no_auth = TO_ENTRY_CONN(newconn)->socks_request->socks_prefer_no_auth =
TO_LISTENER_CONN(conn)->socks_prefer_no_auth; TO_LISTENER_CONN(conn)->socks_prefer_no_auth;
} }