relay: Don't look at omit flag when building descriptor
commit5138a9c3c22fb00b3f6e04058d80f0e6d56aea91
authorDavid Goulet <dgoulet@torproject.org>
Wed, 10 Feb 2021 16:06:52 +0000 (10 11:06 -0500)
committerDavid Goulet <dgoulet@torproject.org>
Wed, 10 Feb 2021 16:47:17 +0000 (10 11:47 -0500)
tree6d327938b01f16af8a0f7bff70c85270f1fb6144
parent758000aa98432414847393420324fef983c66f1e
relay: Don't look at omit flag when building descriptor

That comes from 685c4866acf8489c58aca41ec01aa5a53e39220a which added that
check correctly except for when we build a descriptor.

We already omit the IPv6 address, if we need to, when we encode the descriptor
but we need to keep the actual discovered address in the descriptor so we can
notice future IP changes and be able to assess that we are not publishable as
long as we don't specifically set the omit flag.

This lead to also having tor noticing that our IP changed from <nothing> (no
IPv6 in the descriptor) to a discovered one which would trigger every minute.

Fixes #40279, #40288

Signed-off-by: David Goulet <dgoulet@torproject.org>
src/feature/relay/router.c