[tor-bugs] #17948 [Tor]: HiddenServicePort should connect to localhost by default
Tor Bug Tracker & Wiki
blackhole at torproject.org
Tue Dec 29 10:15:08 UTC 2015
#17948: HiddenServicePort should connect to localhost by default
-------------------------+------------------------------------
Reporter: teor | Owner: teor
Type: enhancement | Status: assigned
Priority: Medium | Milestone: Tor: 0.2.8.x-final
Component: Tor | Version:
Severity: Normal | Resolution:
Keywords: ipv6 | Actual Points:
Parent ID: | Points:
Sponsor: |
-------------------------+------------------------------------
Changes (by teor):
* owner: => teor
* status: new => assigned
Comment:
I think there's a better algorithm here that doesn't require address
resolution:
* check for interface addresses in 127/8 and ::1
* try to connect to an address in 127/8
* if there are multiple addresses, choose the one closest to 127.0.0.1
* if no IPv4 or IPv6 addresses can be discovered on the system, try
127.0.0.1
* if the first connection fails , try to connect to ::1 if
* ::1 is present on the system, or
* no IPv4 or IPv6 addresses can be discovered on the system
This supports IPv4 and IPv6, and preserves the existing IPv4 127.0.0.1
default behaviour, and the existing preference for IPv4 over IPv6, yet
also supports IPv6-only systems.
See https://trac.torproject.org/projects/tor/ticket/17901#comment:16 for
the related behaviour in #17901.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/17948#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list