GoogleCloudPlatform / cloud-sql-nodejs-connector

A JavaScript library for connecting securely to your Cloud SQL instances
Apache License 2.0
67 stars 8 forks source link

Connect should not error on ipType switching #305

Closed jackwotherspoon closed 4 months ago

jackwotherspoon commented 7 months ago

Consecutive connect calls where the ipType switches between calls should not error out which it does currently. We store all the ip addresses of an instance in the connectionInfo so there is no need to error.

https://github.com/GoogleCloudPlatform/cloud-sql-nodejs-connector/blob/00a6eae6a18aed0cd1e62d31d46e61eb0c13c7e8/src/connector.ts#L80-L87