From 43145fc9f556ab155deed39b9738b75334278dcd Mon Sep 17 00:00:00 2001 From: Steven Murdoch Date: Tue, 10 Mar 2009 00:52:45 +0000 Subject: In tor-resolve, when the Tor client to use is specified by :, actually use the specified port rather than defaulting to 9050 svn:r18833 --- src/tools/tor-resolve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools') diff --git a/src/tools/tor-resolve.c b/src/tools/tor-resolve.c index 100c8107a..6ea2dc235 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; } -- cgit v1.2.3