spur no longer blocks literally everything

This commit is contained in:
Elijah R 2024-07-26 15:07:51 -04:00
parent 4e771c9638
commit ab81bd17e8
2 changed files with 4 additions and 6 deletions

View file

@ -6,7 +6,7 @@ port = 3000
[whitelister]
# Fail if a test returns a warning. This is not implemented by any tests yet.
failOnWarn = true
failOnWarn = false
[mysql]
# MySQL connection information, used to cache IP addresses and results

View file

@ -33,11 +33,9 @@ export class SpurTest implements Test {
if (res.includes("Rate Limit Exceeded")) {
return TestResult.ERROR;
}
if (
res.includes("fa-question") ||
res.includes("circleimg") ||
res.includes("fa-key")
) {
if (res.includes("fa-question")) {
return TestResult.WARN;
} else if (res.includes("circleimg") || res.includes("fa-key")) {
return TestResult.FAIL;
}
return TestResult.PASS;