diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-01-13 11:08:33 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-01-13 11:08:33 -0500 |
commit | 05a80bb46c4e71f46f71b83e7ec076fadd20c55a (patch) | |
tree | f5ed0be18526d089416f89fdd6ea3a2e4dd4ea96 /src/or/addressmap.c | |
parent | 2e1ed0815d3f426e7e30b09f3c781425c76e72d5 (diff) | |
download | tor-05a80bb46c4e71f46f71b83e7ec076fadd20c55a.tar.gz tor-05a80bb46c4e71f46f71b83e7ec076fadd20c55a.zip |
More unit tests for rewriting entry connection addresses
Diffstat (limited to 'src/or/addressmap.c')
-rw-r--r-- | src/or/addressmap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/addressmap.c b/src/or/addressmap.c index 908d94faa1..0f417e6369 100644 --- a/src/or/addressmap.c +++ b/src/or/addressmap.c @@ -455,6 +455,8 @@ addressmap_rewrite_reverse(char *address, size_t maxlen, unsigned flags, return 0; else if (f == AF_INET6 && !(flags & AMR_FLAG_USE_IPV6_DNS)) return 0; + /* FFFF we should reverse-map virtual addresses even if we haven't + * enabled DNS cacheing. */ } tor_asprintf(&s, "REVERSE[%s]", address); @@ -975,6 +977,8 @@ addressmap_register_virtual_address(int type, char *new_address) strmap_set(virtaddress_reversemap, new_address, vent); addressmap_register(*addrp, new_address, 2, ADDRMAPSRC_AUTOMAP, 0, 0); + /* FFFF register corresponding reverse mapping. */ + #if 0 { /* Try to catch possible bugs */ |