In tor-resolve, when the Tor client to use is specified by <hostname>:<port>, actually use the specified port rather than defaulting to 9050

svn:r18833
This commit is contained in:
Steven Murdoch 2009-03-10 00:52:45 +00:00
parent 4774e593b8
commit 43145fc9f5
2 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,9 @@ Changes in version 0.2.1.14-??? - 2009-03-??
- Avoid trying to print raw memory to the logs when we decide to - Avoid trying to print raw memory to the logs when we decide to
give up on downloading a given relay descriptor. Bugfix on give up on downloading a given relay descriptor. Bugfix on
0.2.1.9-alpha. 0.2.1.9-alpha.
- In tor-resolve, when the Tor client to use is specified by
<hostname>:<port>, actually use the specified port rather than
defaulting to 9050. Bugfix on 0.2.1.6-alpha.
Changes in version 0.2.1.13-alpha - 2009-03-09 Changes in version 0.2.1.13-alpha - 2009-03-09

View File

@ -388,7 +388,7 @@ main(int argc, char **argv)
(int)socksport, (int)port_option); (int)socksport, (int)port_option);
} else if (port_option) { } else if (port_option) {
socksport = port_option; socksport = port_option;
} else { } else if (!socksport) {
log_debug(LD_CONFIG, "defaulting to port 9050"); log_debug(LD_CONFIG, "defaulting to port 9050");
socksport = 9050; socksport = 9050;
} }