summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2020-01-08 17:46:28 +1000
committerteor <teor@torproject.org>2020-01-08 17:47:08 +1000
commita58cffe195caff042a3785813447025ab13d8bbc (patch)
tree1682646aefe09e107cfa70d9c8c8d51ddd9d1a4d /src
parent81fd8aad242452eea5adcafe90d6378ef047eb4e (diff)
downloadtor-a58cffe195caff042a3785813447025ab13d8bbc.tar.gz
tor-a58cffe195caff042a3785813447025ab13d8bbc.zip
router: Improve port search function comments
Diffstat (limited to 'src')
-rw-r--r--src/feature/relay/router.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/feature/relay/router.c b/src/feature/relay/router.c
index 410ed8c2f3..ef62156ceb 100644
--- a/src/feature/relay/router.c
+++ b/src/feature/relay/router.c
@@ -1396,7 +1396,7 @@ consider_publishable_server(int force)
}
/** Return the port of the first active listener of type
- * <b>listener_type</b>. */
+ * <b>listener_type</b>. Returns 0 if no port is found. */
/** XXX not a very good interface. it's not reliable when there are
multiple listeners. */
uint16_t
@@ -1418,8 +1418,7 @@ router_get_active_listener_port_by_type_af(int listener_type,
/** Return the port that we should advertise as our ORPort; this is either
* the one configured in the ORPort option, or the one we actually bound to
- * if ORPort is "auto".
- */
+ * if ORPort is "auto". Returns 0 if no port is found. */
uint16_t
router_get_advertised_or_port(const or_options_t *options)
{