diff options
author | Linus Nordberg <linus@torproject.org> | 2012-09-20 17:09:25 +0200 |
---|---|---|
committer | Linus Nordberg <linus@torproject.org> | 2012-09-20 17:09:25 +0200 |
commit | 1cbf45bed1451997e0815bedca8e816d87e081ce (patch) | |
tree | 5751a090bff30421dbc4682e38074a56687be5e6 /src/or/or.h | |
parent | cff3b8c93cf312956e629b4caab8f5e48d1e10dd (diff) | |
download | tor-1cbf45bed1451997e0815bedca8e816d87e081ce.tar.gz tor-1cbf45bed1451997e0815bedca8e816d87e081ce.zip |
Make option OutboundBindAddress accept IPv6 addresses too.
Implements ticket 6786.
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h index f7914b830d..577cf6dab8 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -3028,7 +3028,11 @@ typedef struct { /** Addresses to bind for listening for control connections. */ config_line_t *ControlListenAddress; /** Local address to bind outbound sockets */ - char *OutboundBindAddress; + config_line_t *OutboundBindAddress; + /** IPv4 address derived from OutboundBindAddress. */ + tor_addr_t _OutboundBindAddressIPv4; + /** IPv6 address derived from OutboundBindAddress. */ + tor_addr_t _OutboundBindAddressIPv6; /** Directory server only: which versions of * Tor should we tell users to run? */ config_line_t *RecommendedVersions; |