[tor-bugs] #33618 [Core Tor/Tor]: Add IPv6 Support to is_local_addr()

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Mar 14 23:41:25 UTC 2020


#33618: Add IPv6 Support to is_local_addr()
---------------------------------+------------------------
 Reporter:  kimimaro             |          Owner:  (none)
     Type:  enhancement          |         Status:  new
 Priority:  Medium               |      Milestone:
Component:  Core Tor/Tor         |        Version:
 Severity:  Normal               |     Resolution:
 Keywords:  outreachy-ipv6 ipv6  |  Actual Points:
Parent ID:                       |         Points:
 Reviewer:                       |        Sponsor:
---------------------------------+------------------------

Comment (by nickm):

 Hmmm. It looks like we don't currently have an equivalent to
 `last_resolved_address` for IPv6.  It's usually set by
 `resolve_my_address()`, but that one doesn't have an IPv6 equivalent
 either.

 I suppose we could generalize `resolve_my_address()` to take a address
 family, but that function is already pretty complex.

 Another option is to declare an IPv6 equivalent for
 `last_resolved_address`, but don't actually have anything set it yet.
 Then in a separate ticket, we can write the code that sets it.

 Any thoughts here, teor?

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/33618#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list