Skip to content

Commit

Permalink
πŸ› Fix always selecting sql proxy type
Browse files Browse the repository at this point in the history
  • Loading branch information
smoliji committed Sep 3, 2020
1 parent 649766a commit 60cf397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var readProxyType = func() ProxyType {
proxyTypes := []string{string(ProxyTypePod), string(ProxyTypeSQL)}

desiredProxyType := *flags.proxyType
if flags.sqlInstance != nil {
if *flags.sqlInstance != "" {
desiredProxyType = string(ProxyTypeSQL)
}
if desiredProxyType != "" {
Expand Down

0 comments on commit 60cf397

Please sign in to comment.