-
Notifications
You must be signed in to change notification settings - Fork 85
feat: add support for PSC connections #766
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
| addr_info = await self._loop.getaddrinfo( | ||
| ip_address, None, family=socket.AF_INET | ||
| ) | ||
| ip_address = addr_info[0][4][0] |
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.
A comment here about these numbers would help. Also, do you see any reason to guard against these indexes being null?
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.
I'll throw in an error message if the list is empty saying "Could not resolve PSC DNS name into IP addresss" or something
Add a new IP type
IPTypes.PSCto support connections to Cloud SQL using private service connect.