summaryrefslogtreecommitdiff
path: root/src/feature/relay/relay_config.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2021-01-19 12:24:19 -0500
committerDavid Goulet <dgoulet@torproject.org>2021-01-19 13:07:49 -0500
commit938623004b025c5c85745703d817e33a5308da5a (patch)
treec5acad1c14b8182a23f798e8dfa30ab3141fe017 /src/feature/relay/relay_config.h
parente3a5482681f9c4625df1e418b42038cded3cb082 (diff)
downloadtor-938623004b025c5c85745703d817e33a5308da5a.tar.gz
tor-938623004b025c5c85745703d817e33a5308da5a.zip
relay: Keep all ORPorts that are on different ports
We used to actually discard ORPorts that were the same port and same family but they could have different address. Instead, we need to keep all different ORPorts so we can bind a listener on each of them. We will publish only one of these in our descriptor though. Related to #40246 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/relay/relay_config.h')
-rw-r--r--src/feature/relay/relay_config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/feature/relay/relay_config.h b/src/feature/relay/relay_config.h
index 671399ac0a..d36863a1a1 100644
--- a/src/feature/relay/relay_config.h
+++ b/src/feature/relay/relay_config.h
@@ -88,6 +88,12 @@ STATIC void remove_duplicate_orports(struct smartlist_t *ports);
STATIC int check_bridge_distribution_setting(const char *bd);
STATIC int have_enough_mem_for_dircache(const struct or_options_t *options,
size_t total_mem, char **msg);
+#ifdef TOR_UNIT_TESTS
+
+struct port_cfg_t;
+STATIC const char *describe_relay_port(const struct port_cfg_t *port);
+
+#endif /* TOR_UNIT_TESTS */
#endif /* defined(RELAY_CONFIG_PRIVATE) */