diff options
author | teor <teor2345@gmail.com> | 2016-09-13 17:20:46 +1000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-09-13 10:13:57 -0400 |
commit | 365ca3ca0f5d9d391a2156436d1a7c620906e23a (patch) | |
tree | c1eb1da017298f74ce242a5fd63833bc91128d03 /src/or/or.h | |
parent | f686fa2ee600f6670bab7531d404eaf5f8ea91ff (diff) | |
download | tor-365ca3ca0f5d9d391a2156436d1a7c620906e23a.tar.gz tor-365ca3ca0f5d9d391a2156436d1a7c620906e23a.zip |
Refactor Single Onion code to improve consistency
* Check consistency between the two single onion torrc options
* Use the more relevant option each time we check for single onion mode
* Clarify log messages
* Clarify comments
* Otherwise, no behaviour change
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/or/or.h b/src/or/or.h index 07f94b7505..849cd4c7a1 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -3706,8 +3706,7 @@ typedef struct { * rendezvous points. (Onion service descriptors are still posted using * 3-hop paths, to avoid onion service directories blocking the service.) * This option makes every hidden service instance hosted by - * this tor instance a Single Onion Service. One-hop circuits make Single - * Onion servers easily locatable, but clients remain location-anonymous. + * this tor instance a Single Onion Service. * OnionServiceSingleHopMode requires OnionServiceNonAnonymousMode to be set * to 1. * Use rend_service_allow_non_anonymous_connection() or @@ -3716,8 +3715,8 @@ typedef struct { int OnionServiceSingleHopMode; /* Makes hidden service clients and servers non-anonymous on this tor * instance. Allows the non-anonymous OnionServiceSingleHopMode. Enables - * direct connections in the hidden service protocol. - * Use rend_service_non_anonymous_mode() instead of using this option + * non-anonymous behaviour in the hidden service protocol. + * Use rend_service_non_anonymous_mode_enabled() instead of using this option * directly. */ int OnionServiceNonAnonymousMode; |