re-add googlebot ip randomization flag to fix import cycle
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
|
||||
"ladder/handlers"
|
||||
"ladder/internal/cli"
|
||||
"ladder/proxychain/requestmodifiers/bot"
|
||||
|
||||
"github.com/akamensky/argparse"
|
||||
"github.com/gofiber/fiber/v2"
|
||||
@@ -42,7 +43,6 @@ func main() {
|
||||
Help: "Adds verbose logging",
|
||||
})
|
||||
|
||||
/*
|
||||
randomGoogleBot := parser.Flag("", "random-googlebot", &argparse.Options{
|
||||
Required: false,
|
||||
Help: "Update the list of trusted Googlebot IPs, and use a random one for each masqueraded request",
|
||||
@@ -52,7 +52,6 @@ func main() {
|
||||
Required: false,
|
||||
Help: "Update the list of trusted Bingbot IPs, and use a random one for each masqueraded request",
|
||||
})
|
||||
*/
|
||||
|
||||
// TODO: add version flag that reads from handers/VERSION
|
||||
|
||||
@@ -76,7 +75,6 @@ func main() {
|
||||
fmt.Print(parser.Usage(err))
|
||||
}
|
||||
|
||||
/*
|
||||
if *randomGoogleBot {
|
||||
err := bot.GoogleBot.UpdatePool("https://developers.google.com/static/search/apis/ipranges/googlebot.json")
|
||||
if err != nil {
|
||||
@@ -92,7 +90,6 @@ func main() {
|
||||
fmt.Println("defaulting to known trusted Bingbot identity")
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
// utility cli flag to compile ruleset directory into single ruleset.yaml
|
||||
if *mergeRulesets {
|
||||
|
||||
Reference in New Issue
Block a user