diff options
author | Roger Dingledine <arma@torproject.org> | 2004-11-24 06:01:52 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-11-24 06:01:52 +0000 |
commit | cca469ec5865ed8505cb684a5ae9b1969a82efad (patch) | |
tree | be532f5a0433054e8586c850d5b45083de00703f /src | |
parent | 730f4dd52b5c808b06696ea0ec620210cbd15bbd (diff) | |
download | tor-cca469ec5865ed8505cb684a5ae9b1969a82efad.tar.gz tor-cca469ec5865ed8505cb684a5ae9b1969a82efad.zip |
make tor-resolve work again
svn:r2973
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection_edge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index b119089c25..d905465708 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -399,7 +399,7 @@ static int connection_ap_handshake_process_socks(connection_t *conn) { /* this call _modifies_ socks->address iff it's a hidden-service request */ if (rend_parse_rendezvous_address(socks->address) < 0) { /* normal request */ - if (socks->port == 0) { + if (socks->command == SOCKS_COMMAND_CONNECT && socks->port == 0) { log_fn(LOG_WARN,"Application asked to connect to port 0. Refusing."); return -1; } |