소스 검색

and fill in another missing socks reply

svn:r3877
Roger Dingledine 20 년 전
부모
커밋
570da8a8e8
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/or/main.c

+ 1 - 0
src/or/main.c

@@ -478,6 +478,7 @@ void directory_all_unreachable(time_t now) {
     conn->has_sent_end = 1; /* it's not connected anywhere, so no need to end */
     log_fn(LOG_NOTICE,"Network down? Failing connection to '%s:%d'.",
            conn->socks_request->address, conn->socks_request->port);
+    connection_ap_handshake_socks_reply(conn, NULL, 0, SOCKS5_NET_UNREACHABLE);
     connection_mark_for_close(conn);
   }
 }