aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-05-02 15:51:30 -0400
committerNick Mathewson <nickm@torproject.org>2011-05-13 10:41:18 -0400
commit3da661b2422dbf5a098eb3b8ad9dd2033599016f (patch)
treedfd47dce411ce6b0bab81cbae09a85def98decf9 /src/or/router.h
parent6f5998fd73849b98c9c1a017845c0669c32fda5d (diff)
downloadtor-3da661b2422dbf5a098eb3b8ad9dd2033599016f.tar.gz
tor-3da661b2422dbf5a098eb3b8ad9dd2033599016f.zip
Advertise correct DirPort/ORPort when configured with "auto"
We'll eventually want to do more work here to make sure that the ports are stable over multiple invocations. Otherwise, turning your node on and off will get you a new DirPort/ORPort needlessly.
Diffstat (limited to 'src/or/router.h')
-rw-r--r--src/or/router.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/router.h b/src/or/router.h
index 5e021f6fed..1bf1a51ae1 100644
--- a/src/or/router.h
+++ b/src/or/router.h
@@ -50,6 +50,9 @@ int authdir_mode_publishes_statuses(or_options_t *options);
int authdir_mode_tests_reachability(or_options_t *options);
int authdir_mode_bridge(or_options_t *options);
+uint16_t router_get_advertised_or_port(or_options_t *options);
+uint16_t router_get_advertised_dir_port(or_options_t *options);
+
int server_mode(or_options_t *options);
int public_server_mode(or_options_t *options);
int advertised_server_mode(void);