tor/src
David Goulet 803e769fb2 relay: Remove possible ORPorts duplicate from parsed list
Now that tor automatically binds to IPv4 _and_ IPv6, in order to avoid
breaking configurations, we sanitize the parsed lists for duplicate ORPorts.
It is possible to happen because we still allow this configuration;

  ORPort 9888
  ORPort [4242::1]:9888

Meaning that the first ORPort value will bind to 0.0.0.0:9888 _and_ [::]:9888
which would lead to an error when attempting to bind on [4242::1]:9888.
However, that configuration is accepted today and thus we must not break it.

To remedy, we now sanitize the parsed list and prioritize an ORPort that has
an explicit address over the global one.

A warning is emitted if such configuration pattern is found. This is only for
the ORPort.

Related to #33246

Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-07-21 15:48:05 -04:00
..
app relay: Automatically Enable an IPv6 ORPort 2020-07-21 15:48:05 -04:00
config Bug 31812: Change http URL's to https 2020-07-13 10:42:46 -04:00
core relay: Automatically Enable an IPv6 ORPort 2020-07-21 15:48:05 -04:00
ext Move description of ext contents into an md file. 2020-07-02 13:46:25 -04:00
feature relay: Remove possible ORPorts duplicate from parsed list 2020-07-21 15:48:05 -04:00
lib Merge branch 'maint-0.4.4' 2020-07-21 09:29:13 -04:00
rust rust/protover: Fix protocol version support error handling 2020-05-18 21:50:35 +10:00
test relay: Automatically Enable an IPv6 ORPort 2020-07-21 15:48:05 -04:00
tools net: Make all address bytes functions take uint8_t * 2020-04-30 06:54:42 +10:00
trunnel Update Trunnel for new machine_ctr field. 2020-06-08 18:05:34 -05:00
win32 Bump to 0.4.4.2-alpha-dev 2020-07-09 13:15:45 -04:00
arch_goals.md Document high-level architecture goals 2019-12-10 16:47:38 -06:00
include.am Move winprocess_sys into a new low-level hardening module 2020-02-24 07:49:39 -05:00
mainpage.md Move description of ext contents into an md file. 2020-07-02 13:46:25 -04:00