-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: add support for public IP #373
Conversation
8eec590
to
d0611b3
Compare
public enum IpType { | ||
PUBLIC, | ||
PRIVATE, | ||
PSC; |
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.
We are not adding PSC support to the connectors just yet I believe. I think we want to wait on this until we have tested appropriately...
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.
updated
@@ -78,6 +78,7 @@ public ListenableFuture<ConnectionInfo> getConnectionInfo( | |||
|
|||
return new ConnectionInfo( | |||
info.getIpAddress(), | |||
info.getPublicIpAddress(), |
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.
What if an instance does not have a Public IP, does this fail nicely...?
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.
It returns an empty string.
I've updated the connector to raise an exception when IP address is not provided.
Thanks for you review.
f1d9d32
to
b116115
Compare
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.
Looks great!
3d4418f
to
8598731
Compare
Fixes #368