Skip to content

Commit

Permalink
fix: enforce hostname checks only for verify-full
Browse files Browse the repository at this point in the history
  • Loading branch information
darora authored and soedirgo committed Feb 5, 2024
1 parent 56ce42f commit f43f743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const init: (config: PoolConfig) => {
if (typeof config.ssl !== 'object') {
config.ssl = {}
}
config.ssl.rejectUnauthorized = sslmode !== 'no-verify'
config.ssl.rejectUnauthorized = sslmode === 'verify-full'
}
}

Expand Down

0 comments on commit f43f743

Please sign in to comment.