diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-04-08 18:02:03 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-01-13 12:41:15 -0500 |
commit | 9d0fab9872807ef212fadb3feb299cf6309a185f (patch) | |
tree | e7dcafceb46a841cfe1fe67da22b747ebe3aa675 /src/or/addressmap.h | |
parent | ab6bd78eca0f3edc7ed910d8567c409fe3dfdd92 (diff) | |
download | tor-9d0fab9872807ef212fadb3feb299cf6309a185f.tar.gz tor-9d0fab9872807ef212fadb3feb299cf6309a185f.zip |
Allow MapAddress and Automap to work together
The trick here is to apply mapaddress first, and only then apply
automapping. Otherwise, the automap checks don't get done.
Fix for bug 7555; bugfix on all versions of Tor supporting both
MapAddress and AutoMap.
Diffstat (limited to 'src/or/addressmap.h')
-rw-r--r-- | src/or/addressmap.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/or/addressmap.h b/src/or/addressmap.h index bb737e47f4..ff108df024 100644 --- a/src/or/addressmap.h +++ b/src/or/addressmap.h @@ -16,8 +16,11 @@ void addressmap_clean(time_t now); void addressmap_clear_configured(void); void addressmap_clear_transient(void); void addressmap_free_all(void); -#define AMR_FLAG_USE_IPV4_DNS (1u<<0) -#define AMR_FLAG_USE_IPV6_DNS (1u<<1) +#define AMR_FLAG_USE_IPV4_DNS (1u<<0) +#define AMR_FLAG_USE_IPV6_DNS (1u<<1) +#define AMR_FLAG_USE_MAPADDRESS (1u<<2) +#define AMR_FLAG_USE_AUTOMAP (1u<<3) +#define AMR_FLAG_USE_TRACKEXIT (1u<<4) int addressmap_rewrite(char *address, size_t maxlen, unsigned flags, time_t *expires_out, addressmap_entry_source_t *exit_source_out); |