-
Notifications
You must be signed in to change notification settings - Fork 1.6k
draft: New allow_private_endpoints stanza
#5309
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
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #5309 +/- ##
=======================================
Coverage 78.1% 78.1%
=======================================
Files 790 790
Lines 67907 67916 +9
Branches 8225 8218 -7
=======================================
+ Hits 53032 53056 +24
+ Misses 14875 14860 -15
🚀 New features to boost your workflow:
|
|
Some commits are not signed. You need to rebase and sign every commit. |
| run("new in 100/out 10", {}, 100, 10, 4000, 10, 100, 6); | ||
| run("new in 0/out 10", {}, 0, 10, 4000, 10, 0, 1); | ||
| run("new in 100/out 10, private", {}, 100, 10, 0, 10, 0, 6); | ||
| auto testcases = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job re-writing that!
The code is much easier to read.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
src/xrpld/peerfinder/detail/Logic.h
Outdated
| if (!is_valid_address(ep.address)) | ||
| // Discard invalid addresses and if we don't support private IPs in | ||
| // Endpoint message | ||
| if (!is_valid_address(ep.address) || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit]: Consider breaking this into two checks to have two separate debug messages: one for invalid address and the other for !config_.allowPrivateEndpoints && !is_public(ep.address) case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
vlntb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Minor suggestions.
adds allow_private_endpoints configuration formatting issues clang formatting one more attempt to please clang
88120e7 to
e061b43
Compare
vlntb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
allow_private_endpoints stanzaallow_private_endpoints stanza
High Level Overview of Change
Context of Change
Adds a new config stanza
allow_private_endpoints. The new config option allows servers to accept and advertise open slots for servers with private IP addresses.Type of Change
.gitignore, formatting, dropping support for older tooling)API Impact
libxrplchange (any change that may affectlibxrplor dependents oflibxrpl)