Treat all extorport connections with un-set addresses as remote
commitceb6585a4bc2beadde2fb194395711e72ee8559d
authorNick Mathewson <nickm@torproject.org>
Wed, 22 Jul 2020 19:20:41 +0000 (22 15:20 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 22 Jul 2020 19:21:56 +0000 (22 15:21 -0400)
tree49e2c28d001d9f11daf0b2c60df768b912115794
parentc9751e26119e375fcbc74107e89958957c00ee5e
Treat all extorport connections with un-set addresses as remote

Without this fix, if an PT forgets to send a USERADDR command, that
results in a connection getting treated as local for the purposes of
rate-limiting.

If the PT _does_ use USERADDR, we still believe it.

Closes ticket 33747.
changes/ticket33747 [new file with mode: 0644]
src/core/mainloop/connection.c
src/core/or/connection_st.h
src/feature/relay/ext_orport.c