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. 03 Mar, 2021 1 commit
  2. 01 Mar, 2021 2 commits
  3. 24 Feb, 2021 1 commit
  4. 23 Feb, 2021 4 commits
    • David Goulet's avatar
      97e51dd0
    • David Goulet's avatar
      Remove mallinfo() from codebase · ad4f87ed
      David Goulet authored
      Now deprecated in libc >= 2.33
      
      Closes #40309
      Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
      ad4f87ed
    • David Goulet's avatar
      Remove mallinfo() from codebase · 296a557b
      David Goulet authored
      Now deprecated in libc >= 2.33
      
      Closes #40309
      Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
      296a557b
    • David Goulet's avatar
      relay: Avoid a directory early fetch · 39d0f69d
      David Goulet authored
      The directory_fetches_from_authorities() is used to know if a client or relay
      should fetch data from an authority early in the boot process.
      
      We had a condition in that function that made a relay trigger that fetch if it
      didn't know its address (so we can learn it). However, when this is called,
      the address discovery has not been done yet so it would always return true for
      a relay.
      
      Furthermore, it would always trigger a log notice that the IPv4 couldn't be
      found which was inevitable because the address discovery process has not been
      done yet (done when building our first descriptor).
      
      It is also important to point out that starting in 0.4.5.1-alpha, asking an
      authority for an address is done during address discovery time using a one-hop
      circuit thus independent from the relay deciding to fetch or not documents
      from an authority.
      
      Small fix also is to reverse the "IPv(4|6)Only" flag in the notice so that if
      we can't find IPv6 it would output to use IPv4Only.
      
      Fixes #40300
      Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
      39d0f69d
  5. 22 Feb, 2021 3 commits
  6. 19 Feb, 2021 1 commit
  7. 17 Feb, 2021 3 commits
  8. 15 Feb, 2021 2 commits
  9. 12 Feb, 2021 8 commits
  10. 11 Feb, 2021 1 commit
    • David Goulet's avatar
      config: Set flag for implicit port address · 80b33ae1
      David Goulet authored
      Fun bug where we thought we were using the default "false" value when an
      implicit address was detected but if we had an explicit address before, the
      flag was set to true and then we would only use that value.
      
      And thus, for some configurations, implicit addresses would be flagged as
      explicit and then configuring ports goes bad.
      
      Related to #40289
      Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
      80b33ae1
  11. 10 Feb, 2021 2 commits
    • David Goulet's avatar
      relay: Allow RFC1918 addresses for non public relays · ae5800cd
      David Goulet authored
      In other words, if PublishServerDescriptor is set to 0 and AssumeReachable to
      1, then allow a relay to hold a RFC1918 address.
      
      Reasons for this are documented in #40208
      
      Fixes #40208
      Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
      ae5800cd
    • David Goulet's avatar
      relay: Don't look at omit flag when building descriptor · 5138a9c3
      David Goulet authored
      That comes from 685c4866 which added that
      check correctly except for when we build a descriptor.
      
      We already omit the IPv6 address, if we need to, when we encode the descriptor
      but we need to keep the actual discovered address in the descriptor so we can
      notice future IP changes and be able to assess that we are not publishable as
      long as we don't specifically set the omit flag.
      
      This lead to also having tor noticing that our IP changed from <nothing> (no
      IPv6 in the descriptor) to a discovered one which would trigger every minute.
      
      Fixes #40279, #40288
      Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
      5138a9c3
  12. 08 Feb, 2021 6 commits
  13. 05 Feb, 2021 6 commits