[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #7011 [Tor]: Stored IPv6 TransportProxy bindaddr lacks brackets



#7011: Stored IPv6 TransportProxy bindaddr lacks brackets
------------------------+---------------------------------------------------
 Reporter:  dcf         |          Owner:  asn
     Type:  defect      |         Status:  new
 Priority:  normal      |      Milestone:     
Component:  Tor         |        Version:     
 Keywords:  tor-bridge  |         Parent:     
   Points:              |   Actualpoints:     
------------------------+---------------------------------------------------

Comment(by dcf):

 Replying to [comment:2 asn]:
 > I started thinking that maybe it would make sense to change the behavior
 of `fmt_addr()` so that it does decorate IPv6 addresses by default, but
 then `jeroen` in IRC reminded me that bracket decoration is only necessary
 when ':' is used a separator, and maybe we shouldn't decorate all the
 addresses.

 Maybe what you want is a new `fmt_addr_port` or similar that takes both an
 address and a port number. This would additionally allow factoring out
 some `"%s:%u"` and `"%s:%d"` formats; such specifiers can be taken as
 hints that decoration is needed.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7011#comment:3>
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