feat: Add trusted redirect domains.

This commit is contained in:
mehunk
2026-01-26 22:18:04 +09:00
parent 8980117f15
commit db5b07bf98
6 changed files with 205 additions and 0 deletions

View File

@@ -20,3 +20,7 @@ var TaskQueryLimit int
// temporary variable for sora patch, will be removed in future
var TaskPricePatches []string
// TrustedRedirectDomains is a list of trusted domains for redirect URL validation.
// Domains support subdomain matching (e.g., "example.com" matches "sub.example.com").
var TrustedRedirectDomains []string