mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2025-07-23 10:30:08 +00:00
Allow to configure "none" captcha resolver
This commit is contained in:
parent
91d1f0cb4a
commit
a57510aa0d
@ -225,7 +225,7 @@ LOG_LEVEL | info | Used to change the verbosity of the logging. Use `LOG_LEVEL=d
|
|||||||
LOG_HTML | false | Used for debugging. If `true` all HTML that passes through the proxy will be logged to the console in `debug` level.
|
LOG_HTML | false | Used for debugging. If `true` all HTML that passes through the proxy will be logged to the console in `debug` level.
|
||||||
PORT | 8191 | Change this if you already have a process running on port `8191`.
|
PORT | 8191 | Change this if you already have a process running on port `8191`.
|
||||||
HOST | 0.0.0.0 | This shouldn't need to be messed with but if you insist, it's here!
|
HOST | 0.0.0.0 | This shouldn't need to be messed with but if you insist, it's here!
|
||||||
CAPTCHA_SOLVER | None | This is used to select which captcha solving method it used when a captcha is encountered.
|
CAPTCHA_SOLVER | none | This is used to select which captcha solving method it used when a captcha is encountered.
|
||||||
HEADLESS | true | This is used to debug the browser by not running it in headless mode.
|
HEADLESS | true | This is used to debug the browser by not running it in headless mode.
|
||||||
|
|
||||||
Environment variables are set differently depending on the operating system. Some examples:
|
Environment variables are set differently depending on the operating system. Some examples:
|
||||||
|
@ -18,7 +18,9 @@ const captchaSolvers: { [key: string]: Solver } = {}
|
|||||||
export default (): Solver => {
|
export default (): Solver => {
|
||||||
const method = process.env.CAPTCHA_SOLVER
|
const method = process.env.CAPTCHA_SOLVER
|
||||||
|
|
||||||
if (!method) { return null }
|
if (!method || method.toLowerCase() == 'none') {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
if (!(method in captchaSolvers)) {
|
if (!(method in captchaSolvers)) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user