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

[tor-bugs] #8191 [Ooni]: Implement probe IP address lookup via geoip.ubuntu.com/lookup



#8191: Implement probe IP address lookup via geoip.ubuntu.com/lookup
-------------------------+--------------------------------------------------
 Reporter:  hellais      |          Owner:  hellais
     Type:  enhancement  |         Status:  new    
 Priority:  normal       |      Milestone:         
Component:  Ooni         |        Version:         
 Keywords:               |         Parent:  #7348  
   Points:               |   Actualpoints:         
-------------------------+--------------------------------------------------
 If we are unable to detect the probes IP address by connecting to Tor
 (either because Tor has not been started or because we have failed to do a
 GETINFO Address), we should detect the probes IP address by doing a GET
 request to http://geoip.ubuntu.com/lookup.

 We should probably abstract the logic for detecting the probes geo data in
 a separate object that is called something like GeoData(). Such object
 should have a method lookup() and it should be instanced and such method
 called before any test is started.

 Relevant twisted documentation:
 https://twistedmatrix.com/documents/current/web/howto/client.html (section
 on Receiving Responses).

 For an implementation of an object to unroll the response body look at
 https://gitweb.torproject.org/ooni-
 probe.git/blob/HEAD:/ooni/utils/net.py#l63 and it's usage inside of the
 http test template: https://gitweb.torproject.org/ooni-
 probe.git/blob/HEAD:/ooni/templates/httpt.py#l227.

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