mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 22:47:12 +01:00
Be more explicit about which IP we are connecting to; expose future exit policy problems better.
svn:r4519
This commit is contained in:
parent
271d49958e
commit
b11e314f2e
1 changed files with 6 additions and 2 deletions
|
@ -267,13 +267,17 @@ int
|
|||
connection_edge_finished_connecting(connection_t *conn)
|
||||
{
|
||||
char connected_payload[4];
|
||||
char valbuf[INET_NTOA_BUF_LEN];
|
||||
struct in_addr;
|
||||
|
||||
tor_assert(conn);
|
||||
tor_assert(conn->type == CONN_TYPE_EXIT);
|
||||
tor_assert(conn->state == EXIT_CONN_STATE_CONNECTING);
|
||||
|
||||
log_fn(LOG_INFO,"Exit connection to %s:%u established.",
|
||||
safe_str(conn->address),conn->port);
|
||||
in.s_addr = htonl(conn->addr);
|
||||
tor_inet_ntoa(&in,valbuf,sizeof(valbuf));
|
||||
log_fn(LOG_INFO,"Exit connection to %s:%u (%s) established.",
|
||||
safe_str(conn->address),conn->port,safe_str(valbuf));
|
||||
|
||||
conn->state = EXIT_CONN_STATE_OPEN;
|
||||
connection_watch_events(conn, EV_READ); /* stop writing, continue reading */
|
||||
|
|
Loading…
Add table
Reference in a new issue