aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2012-04-12 22:42:37 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2012-04-12 22:42:37 +0200
commit6d2898607bd831944c6c15b6e15200a426149811 (patch)
treee0b2baee164b62b85c89c24aefdfaddee37252ec /src/or/router.c
parentb03f90b5383744593dc1e83fc5834c965573a4dc (diff)
downloadtor-6d2898607bd831944c6c15b6e15200a426149811.tar.gz
tor-6d2898607bd831944c6c15b6e15200a426149811.zip
Fix issues found by nickm.
* Document fmt_addr_impl() and friends. * Parenthesize macro arguments. * Rename get_first_listener_addrport_for_pt() to get_first_listener_addrport_string(). * Handle port_cfg_t with no_listen. * Handle failure of router_get_active_listener_port_by_type(). * Add an XXX to router_get_active_listener_port_by_type().
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 67d26e13e0..3b97d28d0f 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -1218,6 +1218,8 @@ consider_publishable_server(int force)
/** Return the port of the first active listener of type
* <b>listener_type</b>. */
+/** XXX not a very good interface. it's not reliable when there are
+ multiple listeners. */
uint16_t
router_get_active_listener_port_by_type(int listener_type)
{