瀏覽代碼

make tor-resolve work again

svn:r2973
Roger Dingledine 20 年之前
父節點
當前提交
cca469ec58
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/or/connection_edge.c

+ 1 - 1
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;
     }