in internal/proxy/proxy.go [233:245]
func dialOptions(c Config, i InstanceConnConfig) []alloydbconn.DialOption {
var opts []alloydbconn.DialOption
// If public IP is enabled at the instance level, or public IP is enabled
// globally, add the option.
if i.PublicIP != nil && *i.PublicIP || i.PublicIP == nil && c.PublicIP {
opts = append(opts, alloydbconn.WithPublicIP())
}
if i.PSC != nil && *i.PSC || i.PSC == nil && c.PSC {
opts = append(opts, alloydbconn.WithPSC())
}
return opts
}