Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • Legacy
  • TracTrac
  • Issues
  • #8191

Closed
Open
Opened 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
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#8191