diff options
author | Steven Murdoch <Steven.Murdoch@cl.cam.ac.uk> | 2009-03-10 00:52:45 +0000 |
---|---|---|
committer | Steven Murdoch <Steven.Murdoch@cl.cam.ac.uk> | 2009-03-10 00:52:45 +0000 |
commit | 43145fc9f556ab155deed39b9738b75334278dcd (patch) | |
tree | 3946f9f86955bd044e17fb441b509aebb1cffff7 /src/tools/tor-resolve.c | |
parent | 4774e593b822354a929ea500dbe9906e1e302b05 (diff) | |
download | tor-43145fc9f556ab155deed39b9738b75334278dcd.tar.gz tor-43145fc9f556ab155deed39b9738b75334278dcd.zip |
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
Diffstat (limited to 'src/tools/tor-resolve.c')
-rw-r--r-- | src/tools/tor-resolve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/tor-resolve.c b/src/tools/tor-resolve.c index 100c8107a4..6ea2dc2352 100644 --- a/src/tools/tor-resolve.c +++ b/src/tools/tor-resolve.c @@ -388,7 +388,7 @@ main(int argc, char **argv) (int)socksport, (int)port_option); } else if (port_option) { socksport = port_option; - } else { + } else if (!socksport) { log_debug(LD_CONFIG, "defaulting to port 9050"); socksport = 9050; } |