diff options
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 == '-' || |