fix: add caching for defaultUA db call and code fixes

This commit is contained in:
mannilakash committed 2026-04-01 17:27:29 -04:00
1 parent babe5ae177
commit 023cf5782d
13 files changed
+89 -19

No files matched your search

+4
View File
@@ -15,6 +15,10 @@ export const settingsSchema = z.object({
defaultUserAgent: z
.string()
.max(500)
.regex(
/^[\t\x20-\x7E\x80-\xFF]*$/,
"Only printable characters, spaces, and tabs are allowed (RFC 7230)"
)
.transform((val) => (val.trim() === "" ? null : val.trim()))
.optional(),
checkTTL: z