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.

  1. 14 Apr, 2020 1 commit
    • juga  's avatar
      chg: relaylist: Count measurements with timestamps · 89801c53
      juga authored
      in RelayList:
      - Rename recent_measurement_attempt_count to recent_measurement_attempt when
        there is no counting
      - Use the timestamps class to manage/count measurement attempts
      89801c53
  2. 09 Apr, 2020 1 commit
    • juga  's avatar
      chg: relaylist, v3bwfile: Count consensus with timestamps · e098ebb9
      juga authored
      in RelayList:
      - Rename consensus_timestamps to recent_consensus
      - Rename recent_consensus_count to recent_consensus when there is
        no counting
      - Use the timestamps class to manage/count consensuses
      - Remove method not needed anymore
      e098ebb9
  3. 09 Mar, 2020 4 commits
  4. 13 Feb, 2020 1 commit
  5. 31 Jan, 2020 1 commit
  6. 26 Jan, 2020 2 commits
  7. 17 Jun, 2019 1 commit
    • teor's avatar
      relaylist: stop using the current time when a consensus is downloaded twice · 3a521cc5
      teor authored
      Instead:
      * use the consensus valid-after time, or
      * use the supplied timestamp, or
      * warn and use the current time.
      
      This should fix the occasional CI failure, when the current time is 1 second
      later than the test consensus time. (Or it should warn, and we can fix the
      test code.)
      
      Fixes bug 30909; bugfix on 1.1.0.
      3a521cc5
  8. 27 Mar, 2019 1 commit
  9. 21 Mar, 2019 2 commits
  10. 13 Mar, 2019 1 commit
  11. 09 Mar, 2019 1 commit
  12. 08 Mar, 2019 4 commits
  13. 18 Dec, 2018 1 commit
    • juga  's avatar
      relaylist: remove assertions that fail measurement · ac9406a6
      juga authored
      When the descriptor or network status of a relay was not obtained,
      some attributes can't be obtained it can be return None instead
      of failing the measurement.
      Also, there's no need for hasattr when getattr can just return
      None as default.
      
      Closes #28870. Bugfix v0.4.0
      ac9406a6
  14. 03 Dec, 2018 2 commits
    • juga  's avatar
      globals: remove unused resolve and can_exit_to functions · bad22915
      juga authored
      They were used to resolve the IP of the destination and check
      whether an exit policy allows to exit to that IP, but when the
      destination is a CDN, the IP locally resolved would be different
      to the IP resolved in the exit, and when the IP resolved to
      IPv6, it was possible that the scanner didn't have IPv6.
      The correct method to check whether an exit policy allows to exit
      to an IP, would be to resolve the domain via Tor itself using
      RESOLVE and ADDRMAP events with that exit.
      bad22915
    • juga  's avatar
      relaylist: add property is_unmeasured · 9e089b72
      juga authored
      9e089b72
  15. 23 Nov, 2018 1 commit
  16. 22 Nov, 2018 4 commits
  17. 22 Oct, 2018 1 commit
    • Matt Traudt's avatar
      Don't assume we can resolve a domain name · a7dce5ce
      Matt Traudt authored
      Even for a valid domain that usually resolves, sometimes the local DNS
      resolver won't be able to resolve it (duh). Catch the exception that gets
      thrown in that instance and fail gracefully by returning an empty list.
      a7dce5ce
  18. 25 Sep, 2018 1 commit
  19. 13 Sep, 2018 1 commit
  20. 05 Jul, 2018 6 commits
  21. 02 Jul, 2018 2 commits
  22. 24 Jun, 2018 1 commit
    • Matt Traudt's avatar
      Remove an assert on _need_refresh() · ba873130
      Matt Traudt authored
      The chance of us needing a refresh at this point is TINY, but it's probably
      better to return a list of relays stale by a millisecond than it is to cause
      the user's program to crash.
      ba873130