Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate address more carefully when checking self-reachability #2054

Closed
wants to merge 4 commits into from

Conversation

nmathewson
Copy link
Contributor

Previously, we would treat any incoming circuit on a non-local
channel as meaning that our ORPort was reachable. With this patch,
we make sure that the address that the peer says we have is the
same as the one we're trying to advertise right now.

Closes 20165. Bugfix on 4f5192b in 0.1.0.1-rc, when
reachability self-tests were first introduced.

Previously, we would treat *any* incoming circuit on a non-local
channel as meaning that our ORPort was reachable.  With this patch,
we make sure that the address that the peer _says_ we have is the
same as the one we're trying to advertise right now.

Closes 20165. Bugfix on 4f5192b in 0.1.0.1-rc, when
reachability self-tests were first introduced.
@coveralls
Copy link

coveralls commented Aug 6, 2020

Pull Request Test Coverage Report for Build 9879

  • 2 of 21 (9.52%) changed or added relevant lines in 4 files are covered.
  • 1393 unchanged lines in 8 files lost coverage.
  • Overall coverage decreased (-0.02%) to 64.411%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/core/or/channeltls.c 0 4 0.0%
src/feature/relay/circuitbuild_relay.c 0 6 0.0%
src/feature/relay/router.c 0 9 0.0%
Files with Coverage Reduction New Missed Lines %
src/feature/relay/relay_periodic.c 37 12.61%
src/feature/relay/selftest.c 112 0%
src/core/or/channel.c 133 82.09%
src/feature/hs/hs_client.c 167 57.66%
src/core/or/circuitbuild.c 170 52.27%
src/feature/control/control_events.c 243 42.12%
src/feature/control/control_getinfo.c 250 29.97%
src/core/or/channeltls.c 281 44.14%
Totals Coverage Status
Change from base Build 9777: -0.02%
Covered Lines: 51524
Relevant Lines: 79992

💛 - Coveralls

@ghost ghost closed this May 25, 2021
@ghost ghost deleted the branch torproject:master May 25, 2021 12:57
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants