Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #8191

Closed
Open
Created Feb 08, 2013 by Arturo Filasto@art

Implement probe IP address lookup via geoip.ubuntu.com/lookup

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.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking