[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #9181 [Stem]: "ProtocolError: Target location's port is invalid" when STREAM event target is IPv6 address
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs