-
Notifications
You must be signed in to change notification settings - Fork 21
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
Resolves IP Lookups #270 #313
Conversation
LGTM so far well done. Correct log message outputting as expected for private ip NAT.
|
Function ending with |
My bad . on it, |
The point is not to rename it but simplify it a bit. with {:ok, ip} <- apply(provider, :get_node_ip, []),
true <- Networking.valid_ip?(ip) do
Logger.info("Node IP discovered: #{:inet.ntoa(ip)} by #{provider}")
ip
else
false ->
fallback(provider, "NAT: Private IP")
{:error, reason} ->
fallback(provider, reason)
end |
I agree , my bad |
Can you update the PR description from the template described ? Also it would be great to add some unit tests |
<co-author rohit@uniris.io >
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.
There are still improvements to be done, and you should avoid removing stuff already present, as it can lead to regression
Sure, I will do the required changes. |
This reverts commit a9ac434.
otherwise it seems good 👍 |
Description
We must check the IP retrieved for given node, (in production) belongs to Public IP. It should not be static or NAT IP.
Fixes # (IPLookup is unable to detect and avoid forbidden IP ranges #270 )
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Checklist: