We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a250719 commit 4785f7aCopy full SHA for 4785f7a
internal/utils/connect.go
@@ -182,5 +182,5 @@ func ConnectByConfig(ctx context.Context, config pgconn.Config, options ...func(
182
}
183
184
func IsLocalDatabase(config pgconn.Config) bool {
185
- return config.Host == Config.Hostname && config.Port == Config.Db.Port
+ return config.Host == Config.Hostname && (config.Port == Config.Db.Port || config.Port == Config.Db.ShadowPort)
186
0 commit comments