-
Notifications
You must be signed in to change notification settings - Fork 9
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
filter local endpoints when set remote #52
Conversation
Thanks @gojoy for raising this PR. Overall it makes sense to me. Please resolve the two comments above. |
got it |
157dc7a
to
9689b72
Compare
Please also verify IPv6 loopback address in the test cases. |
done |
Hi. Is there any problem that I should solve ? 😄 @ahrtr |
Please read #52 (comment). I remaindered you a couple of times, I am not sure why you keep marking it as resolved but actually not resolving it. |
Sorry I misunderstood your meaning before. I didn't ignore it on purpose. |
The point is try not to hardcode the loopback address, and instead make it flexible. You can try to get the host part from the URL firstly, afterwards check whether or not it's a loopback address. |
I agree. I adjusted the code to make it flexible.thanks |
de74240
to
0cb8629
Compare
Thanks for all the effort. I will merge this PR once the above minor comments are resolved. |
Signed-off-by: GitHub <noreply@github.com>
some etcd member has multiple clientURLs inculde local address,for example:
["http://10.7.7.7:2379","http://127.0.0.1:2379"]
in this case, excuting etcd-defrag with --cluster on remote machine would fail,because health check failed.
we should add flag --remote to filter local address