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