fix typo in main() and add random ip generation

This commit is contained in:
Damian Bednarczyk
2023-12-01 21:08:53 -06:00
parent d9714fb449
commit 54173cf672
3 changed files with 53 additions and 12 deletions

View File

@@ -101,7 +101,7 @@ func main() {
}
if *randomBingBot {
err := bot.GoogleBot.UpdatePool("https://www.bing.com/toolbox/bingbot.json")
err := bot.BingBot.UpdatePool("https://www.bing.com/toolbox/bingbot.json")
if err != nil {
fmt.Println("error while retrieving list of Bingbot IPs: " + err.Error())
fmt.Println("defaulting to known trusted Bingbot identity")