Skip to content

Commit f43f743

Browse files
darorasoedirgo
authored andcommitted
fix: enforce hostname checks only for verify-full
1 parent 56ce42f commit f43f743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/db.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const init: (config: PoolConfig) => {
4848
if (typeof config.ssl !== 'object') {
4949
config.ssl = {}
5050
}
51-
config.ssl.rejectUnauthorized = sslmode !== 'no-verify'
51+
config.ssl.rejectUnauthorized = sslmode === 'verify-full'
5252
}
5353
}
5454

0 commit comments

Comments
 (0)