From 6dd91de3bda3226fc7779c9251ed595ca0225aeb Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 4 Jan 2005 05:46:54 +0000 Subject: Nothing actually _uses_ socks_port, so why publish it? For backward compatibility, publish a socks_port of 0, and never read socks_port. svn:r3279 --- src/or/routerparse.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/or/routerparse.c') diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 9886d0ac1..b194ae007 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -805,7 +805,6 @@ routerinfo_t *router_parse_entry_from_string(const char *s, if (tok->n_args >= 5) { router->or_port = (uint16_t) tor_parse_long(tok->args[2],10,0,65535,NULL,NULL); - router->socks_port = (uint16_t) tor_parse_long(tok->args[3],10,0,65535,NULL,NULL); router->dir_port = (uint16_t) tor_parse_long(tok->args[4],10,0,65535,NULL,NULL); ports_set = 1; } @@ -824,7 +823,6 @@ routerinfo_t *router_parse_entry_from_string(const char *s, goto err; } router->or_port = (uint16_t) tor_parse_long(tok->args[0],10,0,65535,NULL,NULL); - router->socks_port = (uint16_t) tor_parse_long(tok->args[1],10,0,65535,NULL,NULL); router->dir_port = (uint16_t) tor_parse_long(tok->args[2],10,0,65535,NULL,NULL); ports_set = 1; } @@ -951,8 +949,8 @@ routerinfo_t *router_parse_entry_from_string(const char *s, router->platform = tor_strdup(""); } -// log_fn(LOG_DEBUG,"or_port %d, socks_port %d, dir_port %d, bandwidthrate %u, bandwidthburst %u.", -// router->or_port, router->socks_port, router->dir_port, +// log_fn(LOG_DEBUG,"or_port %d, dir_port %d, bandwidthrate %u, bandwidthburst %u.", +// router->or_port, router->dir_port, // (unsigned) router->bandwidthrate, (unsigned) router->bandwidthburst); goto done; -- cgit v1.2.3