mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
back out most of 1d0ba9a
this was causing directory authorities to send a time of 0 on all connections they generated themselves, which means everybody reachability test caused a time skew warning in the log for that relay. (i didn't just revert, because the changes file has been modified by other later commits.)
This commit is contained in:
parent
07bb171856
commit
4f036acd27
1 changed files with 2 additions and 3 deletions
|
@ -2051,8 +2051,7 @@ connection_or_send_netinfo(or_connection_t *conn)
|
||||||
memset(&cell, 0, sizeof(cell_t));
|
memset(&cell, 0, sizeof(cell_t));
|
||||||
cell.command = CELL_NETINFO;
|
cell.command = CELL_NETINFO;
|
||||||
|
|
||||||
/* Timestamp, if we're a relay. */
|
/* Timestamp. */
|
||||||
if (! conn->handshake_state->started_here)
|
|
||||||
set_uint32(cell.payload, htonl((uint32_t)now));
|
set_uint32(cell.payload, htonl((uint32_t)now));
|
||||||
|
|
||||||
/* Their address. */
|
/* Their address. */
|
||||||
|
|
Loading…
Add table
Reference in a new issue