mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2026-04-14 20:35:36 +02:00
Allow to configure "none" captcha resolver
This commit is contained in:
@@ -18,7 +18,9 @@ const captchaSolvers: { [key: string]: Solver } = {}
|
||||
export default (): Solver => {
|
||||
const method = process.env.CAPTCHA_SOLVER
|
||||
|
||||
if (!method) { return null }
|
||||
if (!method || method.toLowerCase() == 'none') {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!(method in captchaSolvers)) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user