[tor-bugs] #9181 [Stem]: "ProtocolError: Target location's port is invalid" when STREAM event target is IPv6 address
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sun Jun 30 16:16:22 UTC 2013
#9181: "ProtocolError: Target location's port is invalid" when STREAM event target
is IPv6 address
--------------------+-------------------------------------------------------
Reporter: soult | Owner: atagar
Type: defect | Status: needs_review
Priority: normal | Milestone:
Component: Stem | Version:
Keywords: ipv6 | Parent:
Points: | Actualpoints:
--------------------+-------------------------------------------------------
Changes (by soult):
* status: new => needs_review
Comment:
Since Tor does not normally have an IPv6 address as stream target, this
bug is (afaik) only triggered when doing reverse DNS resolution. From the
control spec it is clear that the target will always end with ":" Port, so
the fix is to only split on the last colon using rsplit.
A patch can be found in the branch bug-9181 of my stem repository
clone[1]. (Diff[2]).
1: https://github.com/soult/stem/
2: https://github.com/soult/stem/compare/master...bug-9181
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/9181#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list