diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-09-26 18:58:45 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-09-26 18:58:45 +0000 |
commit | e147e867bea13515c964e823e3f98c28f90cf22c (patch) | |
tree | a8af8f882985c2edfa36f1eee2e44de17a6a4a80 /src/or/or.h | |
parent | 87eb230c01693c0cdb81d05a6bd2c866874c5e3a (diff) | |
download | tor-e147e867bea13515c964e823e3f98c28f90cf22c.tar.gz tor-e147e867bea13515c964e823e3f98c28f90cf22c.zip |
Proposal 152 implementation from Josh Albrecht, with tweaks.
svn:r16983
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index f57dcfbd90..5820a56c4e 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1357,6 +1357,8 @@ typedef struct { * dnsworker code. */ unsigned int caches_extra_info:1; /**< Whether the router caches and serves * extrainfo documents. */ + unsigned int allow_single_hop_exits:1; /**< Whether the router allows + * single hop exits. */ /* local info */ unsigned int is_running:1; /**< As far as we know, is this OR currently @@ -2420,6 +2422,16 @@ typedef struct { * if we are a cache). For authorities, this is always true. */ int DownloadExtraInfo; + /** If true, and we are acting as a relay, allow exit circuits even when + * we are the first hop of a circuit. */ + int AllowSingleHopExits; + /** If true, don't allow relays with AllowSingleHopExits=1 to be used in + * circuits that we build. */ + int ExcludeSingleHopRelays; + /** If true, and the controller tells us to use a one-hop circuit, and the + * exit allows it, we use it. */ + int AllowSingleHopCircuits; + /** If true, do not believe anybody who tells us that a domain resolves * to an internal address, or that an internal address has a PTR mapping. * Helps avoid some cross-site attacks. */ |