relay: Allow RFC1918 addresses for non public relays
commitae5800cd9faccd8c1319601cac7f6c76c4beb288
authorDavid Goulet <dgoulet@torproject.org>
Wed, 10 Feb 2021 16:46:32 +0000 (10 11:46 -0500)
committerDavid Goulet <dgoulet@torproject.org>
Wed, 10 Feb 2021 18:24:21 +0000 (10 13:24 -0500)
tree08fdcec354e997917f106b89a7b902284fcf70ef
parent758000aa98432414847393420324fef983c66f1e
relay: Allow RFC1918 addresses for non public relays

In other words, if PublishServerDescriptor is set to 0 and AssumeReachable to
1, then allow a relay to hold a RFC1918 address.

Reasons for this are documented in #40208

Fixes #40208

Signed-off-by: David Goulet <dgoulet@torproject.org>
changes/ticket40208 [new file with mode: 0644]
src/app/config/resolve_addr.c
src/test/test_config.c