]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
dir_connection_t: Explain dirconn_direct better
authorteor <teor@torproject.org>
Tue, 21 Jan 2020 23:27:40 +0000 (09:27 +1000)
committerteor <teor@torproject.org>
Tue, 21 Jan 2020 23:27:40 +0000 (09:27 +1000)
Direct connections can use a DirPort or ORPort.
Indirect connections must use a multi-hop Tor circuit.

Comment-only changes.

src/feature/dircommon/dir_connection_st.h

index 2c68e61845b0011c07ac001dfbb4c54aeb989fcf..12230e674175d4fb4075bc141fd1fc37407090d2 100644 (file)
@@ -28,7 +28,9 @@ struct dir_connection_t {
   * fingerprints.
   **/
   char *requested_resource;
-  unsigned int dirconn_direct:1; /**< Is this dirconn direct, or via Tor? */
+  /** Is this dirconn direct, or via a multi-hop Tor circuit?
+   * Direct connections can use the DirPort, or BEGINDIR over the ORPort. */
+  unsigned int dirconn_direct:1;
 
   /** If we're fetching descriptors, what router purpose shall we assign
    * to them? */