1. 10 Aug, 2020 1 commit
  2. 09 Jul, 2020 1 commit
    • juga  's avatar
      fix: relaylist: Check exit to all domains/ips · d958915e
      juga authored
      When an exit policy allows to exit only to some subnet, it is not
      enough to check that it can exit to a port, since it can, but it might
      not be able to exit to the domain/ip of the sbws Web servers.
      To ensure that without having to check whether it can exit to a
      specific domain/ip, we can query the exit policy with `strict`.
      
      Closes #40006. Bugfix v1.0.3.
      d958915e
  3. 14 Apr, 2020 3 commits
  4. 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
  5. 09 Mar, 2020 4 commits
  6. 13 Feb, 2020 1 commit
  7. 31 Jan, 2020 1 commit
  8. 26 Jan, 2020 2 commits
  9. 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
  10. 27 Mar, 2019 1 commit
  11. 21 Mar, 2019 2 commits
  12. 13 Mar, 2019 1 commit
  13. 09 Mar, 2019 1 commit
  14. 08 Mar, 2019 4 commits
  15. 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
  16. 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
  17. 23 Nov, 2018 1 commit
  18. 22 Nov, 2018 4 commits
  19. 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
  20. 25 Sep, 2018 1 commit
  21. 13 Sep, 2018 1 commit
  22. 05 Jul, 2018 5 commits