-
Notifications
You must be signed in to change notification settings - Fork 177
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 -serviceAddr
on startup and cli handler
#3156
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3156 +/- ##
===================================================
+ Coverage 57.34261% 57.35155% +0.00894%
===================================================
Files 92 92
Lines 15805 15813 +8
===================================================
+ Hits 9063 9069 +6
- Misses 6137 6139 +2
Partials 605 605
Continue to review full report in Codecov by Sentry.
|
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.
Added one minor comment, other than that LGTM
I'll wait for the CI build and if it's fine, then I'll merge |
@eliteprox @leszko Sorry I'm late to this, I'm traveling. Why accept private IP ranges at all with Warning the user to use a public IP immediately followed by an example of instead something like:
Would've shipped a PR for the error messages, but wanted to know how you felt about using Go |
@Strykar Good suggestion! I agree the log message should be improved. I'd also like to change this from a warning to an error, The main concern I have heard is it still common for developers to test on-chain scenarios locally with arbitrum-one-mainnet network instead of a testnet, so for now we decided to go with a warning only |
What does this pull request do? Explain your changes. (required)
This change aims to bring awareness to orchestrators that setting
0.0.0.0
or any other non-public IP as the-serviceAddr
flag will cause issues with receiving and processing work. This will also help improve network quality.Specific updates (required)
-serviceAddr
contains0.0.0.0
livepeer_cli
option 13: Set orchestrator configHow did you test each of these updates (required)
-serviceAddr
, confirm warning shows on startupDoes this pull request close any open issues?
AI-586
Checklist:
make
runs successfully./test.sh
pass