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

Honor AllowPrivateIPs config #1422

Merged
merged 6 commits into from
Apr 26, 2023
Merged

Honor AllowPrivateIPs config #1422

merged 6 commits into from
Apr 26, 2023

Conversation

StephenButtolph
Copy link
Contributor

@StephenButtolph StephenButtolph commented Apr 26, 2023

Why this should be merged

Resolves #1415

How this works

If the node is configured to skip connecting to private IPs we should never dial private IPs. It is important not to modify the shouldDial result from peerIPStatus because that is critical to how the peerlist gossip reduction functions. (We still want to ACK the peerlist, but we don't want to dial the IP).

How this was tested

TODO: CI + added tests

@StephenButtolph StephenButtolph self-assigned this Apr 26, 2023
@StephenButtolph StephenButtolph added bug Something isn't working networking This involves networking labels Apr 26, 2023
@StephenButtolph StephenButtolph added this to the v1.10.1 milestone Apr 26, 2023
@StephenButtolph
Copy link
Contributor Author

We should also add a regression test for this

network/network.go Outdated Show resolved Hide resolved
@StephenButtolph StephenButtolph added the DO NOT MERGE This PR must not be merged in its current state label Apr 26, 2023
@StephenButtolph StephenButtolph removed the DO NOT MERGE This PR must not be merged in its current state label Apr 26, 2023
@StephenButtolph StephenButtolph merged commit e44ef23 into dev Apr 26, 2023
@StephenButtolph StephenButtolph deleted the fix-allow-private-ips branch April 26, 2023 15:57
joshua-kim added a commit to joshua-kim/avalanchego that referenced this pull request Apr 27, 2023
commit b11e9bb
Author: Stephen Buttolph <stephen@avalabs.org>
Date:   Wed Apr 26 14:30:28 2023 -0400

    Update BLS signature ordering to avoid public key compression (ava-labs#1416)

commit e44ef23
Author: Stephen Buttolph <stephen@avalabs.org>
Date:   Wed Apr 26 11:57:39 2023 -0400

    Honor AllowPrivateIPs config (ava-labs#1422)

commit 6fb00b9
Author: Stephen Buttolph <stephen@avalabs.org>
Date:   Wed Apr 26 11:56:46 2023 -0400

    Simplify IP status calculation (ava-labs#1421)
joshua-kim pushed a commit to joshua-kim/avalanchego that referenced this pull request Apr 28, 2023
Co-authored-by: Stephen <stephen@avalabs.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working networking This involves networking
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants