feat: small file is unrequired to verity to download.

This commit is contained in:
2025-07-16 11:13:54 +08:00
parent 9f4eb1e2a8
commit ea8dbb90b9
3 changed files with 42 additions and 25 deletions

View File

@@ -28,6 +28,9 @@ func verifyCfToken(cfToken string) (bool, error) {
if config.CloudflareTurnstileSecretKey() == "" {
return true, nil
}
if cfToken == "" {
return false, nil
}
client := &http.Client{}
data, _ := json.Marshal(map[string]string{
"secret": config.CloudflareTurnstileSecretKey(),