[tor-bugs] #5852 [BridgeDB]: WebResource.getBridgeRequestAnswer() is unhappy about IPv6 addresses

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Mon May 14 09:39:58 UTC 2012


#5852: WebResource.getBridgeRequestAnswer() is unhappy about IPv6 addresses
----------------------+-----------------------------------------------------
 Reporter:  ln5       |          Owner:     
     Type:  defect    |         Status:  new
 Priority:  normal    |      Milestone:     
Component:  BridgeDB  |        Version:     
 Keywords:            |         Parent:     
   Points:            |   Actualpoints:     
----------------------+-----------------------------------------------------
 Logs on ponticum fill up with warnings about badly formed
 X-Forwarded-For headers.  Most (all?) of them appear to be IPv6
 addresses.

 Bridges.is_valid_ip() recognizes IPv4 addresses only.

 I don't know if extending is_valid_ip() is the right thing to do but
 it might.  I haven't looked into other usage of it.

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


More information about the tor-bugs mailing list