diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-11-06 13:35:31 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-11-14 23:16:40 -0500 |
commit | 35ce42118fa84825b4eca5e53617563100c8477e (patch) | |
tree | b84865d3c3dab64b4a93103bed2f7d7a6819b72b /src/or/addressmap.c | |
parent | 1cc77365753a298de6e1706d2faa592f6ed33b95 (diff) | |
download | tor-35ce42118fa84825b4eca5e53617563100c8477e.tar.gz tor-35ce42118fa84825b4eca5e53617563100c8477e.zip |
Make address_is_invalid_destination recognize ipv6 addrs as valid.
Diffstat (limited to 'src/or/addressmap.c')
-rw-r--r-- | src/or/addressmap.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/addressmap.c b/src/or/addressmap.c index 75cfca6442..98448ebddf 100644 --- a/src/or/addressmap.c +++ b/src/or/addressmap.c @@ -902,6 +902,13 @@ address_is_invalid_destination(const char *address, int client) return 0; } + /* It might be an IPv6 address! */ + { + tor_addr_t a; + if (tor_addr_parse(&a, address) >= 0) + return 0; + } + while (*address) { if (TOR_ISALNUM(*address) || *address == '-' || |