mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-11 22:17:14 +03:00
create a request validator engine
This commit is contained in:
@@ -69,10 +69,7 @@ addDefaults(config, {
|
||||
message: "OK",
|
||||
}
|
||||
},
|
||||
validityCheck: {
|
||||
userAgent: null,
|
||||
userAgentR: null,
|
||||
},
|
||||
requestValidatorRules: [],
|
||||
userCounterURL: null,
|
||||
userCounterRatio: 10,
|
||||
newLeafURLs: null,
|
||||
@@ -276,4 +273,4 @@ function loadFromEnv(config: SBSConfig, prefix = "") {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user