From d586220df263bfa01cd5cd74edeff055f3b28310 Mon Sep 17 00:00:00 2001 From: Azareal Date: Mon, 9 Mar 2020 20:49:22 +1000 Subject: [PATCH] add alternate duckduckgo ua --- gen_router.go | 2 ++ router_gen/main.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/gen_router.go b/gen_router.go index c9ce2ff7..4c92ab5f 100644 --- a/gen_router.go +++ b/gen_router.go @@ -679,6 +679,7 @@ var markToAgent = map[string]string{ "Googlebot": "googlebot", "yandex": "yandex", "DuckDuckBot": "duckduckgo", + "DuckDuckGo": "duckduckgo", "Baiduspider": "baidu", "Sogou": "sogou", "ToutiaoSpider": "toutiao", @@ -724,6 +725,7 @@ var markToID = map[string]int{ "Googlebot": 12, "yandex": 13, "DuckDuckBot": 21, + "DuckDuckGo": 21, "Baiduspider": 17, "Sogou": 18, "ToutiaoSpider": 19, diff --git a/router_gen/main.go b/router_gen/main.go index 64084cf7..658f9d0e 100644 --- a/router_gen/main.go +++ b/router_gen/main.go @@ -299,6 +299,7 @@ func main() { "Googlebot", "yandex", "DuckDuckBot", + "DuckDuckGo", "Baiduspider", "Sogou", "ToutiaoSpider", @@ -347,6 +348,7 @@ func main() { "Googlebot": "googlebot", "yandex": "yandex", // from the URL "DuckDuckBot": "duckduckgo", + "DuckDuckGo":"duckduckgo", "Baiduspider": "baidu", "Sogou": "sogou", "ToutiaoSpider": "toutiao",