[tor-bugs] #3718 [TorStatus]: Add IPv6 support
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Wed Aug 10 21:34:11 UTC 2011
#3718: Add IPv6 support
-------------------------+--------------------------------------------------
Reporter: cypherpunks | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: TorStatus | Version:
Keywords: | Parent:
Points: | Actualpoints:
-------------------------+--------------------------------------------------
At some point, IPv6 support should be added.
On the database level, this requires converting all given IPv4 `INET`
values to IPv6 `INET` values, since IPv4 and IPv6 values do not play
nicely together in PostgreSQL <= 8.4.8. (see:
http://archives.postgresql.org/pgsql-admin/2011-07/msg00201.php) A helpful
postgres dev suggests doing something along the lines of the following:
`"address = '::ffff:0.0.0.0'::inet + (NEW.address::varchar::inet -
'0.0.0.0'::inet)"`
Next, `statusapp.views.helpers.is_ipaddress` and
`statusapp.views.helpers.is_ip_in_subnet` should be rewritten to work with
both IPv4 and IPv6 input and IP addresses.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/3718>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list