[tor-bugs] #18079 [Stem]: Improve (IPv6) parsing of "connection resolvers"

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Jan 26 17:30:22 UTC 2016


#18079: Improve (IPv6) parsing of "connection resolvers"
--------------------+--------------------------
 Reporter:  toralf  |          Owner:  atagar
     Type:  defect  |         Status:  reopened
 Priority:  Medium  |      Milestone:
Component:  Stem    |        Version:
 Severity:  Normal  |     Resolution:
 Keywords:  ipv6    |  Actual Points:
Parent ID:          |         Points:
  Sponsor:          |
--------------------+--------------------------

Comment (by toralf):

 FWIW calling python2 instead of 3 gives :
 {{{
 ms-magpie ~ #  /home/tfoerste/info.py
 ['proc', 'netstat', 'lsof', 'ss'] : proc
 Traceback (most recent call last):
   File "/home/tfoerste/info.py", line 162, in <module>
     main()
   File "/home/tfoerste/info.py", line 123, in main
     if policy.can_exit_to(raddr, rport):
   File "/usr/lib64/python2.7/site-packages/stem/util/lru_cache.py", line
 135, in wrapper
     result = user_function(*args, **kwds)
   File "/usr/lib64/python2.7/site-packages/stem/exit_policy.py", line 286,
 in can_exit_to
     if rule.is_match(address, port, strict):
   File "/usr/lib64/python2.7/site-packages/stem/exit_policy.py", line 755,
 in is_match
     raise ValueError("'%s' isn't a valid port" % port)
 ValueError: '0' isn't a valid port
 }}}

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


More information about the tor-bugs mailing list