diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-05-02 15:51:30 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-13 10:41:18 -0400 |
commit | 3da661b2422dbf5a098eb3b8ad9dd2033599016f (patch) | |
tree | dfd47dce411ce6b0bab81cbae09a85def98decf9 /src/or/config.c | |
parent | 6f5998fd73849b98c9c1a017845c0669c32fda5d (diff) | |
download | tor-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/config.c')
-rw-r--r-- | src/or/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c index 914c4cb3b8..b06c8c95c3 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -563,7 +563,7 @@ static int or_state_validate(or_state_t *old_options, or_state_t *options, static int or_state_load(void); static int options_init_logs(or_options_t *options, int validate_only); -static int is_listening_on_low_port(uint16_t port_option, +static int is_listening_on_low_port(int port_option, const config_line_t *listen_options); static uint64_t config_parse_memunit(const char *s, int *ok); |