add headless chrome ua

This commit is contained in:
Azareal 2020-04-12 18:33:24 +10:00
parent fbc50c9086
commit 1dc69ed89e
3 changed files with 8 additions and 0 deletions

View File

@ -629,6 +629,7 @@ var agentMapEnum = map[string]int{
"curl": 55,
"python": 56,
"go": 57,
"headlesschrome": 58,
}
var reverseAgentMapEnum = map[int]string{
0: "unknown",
@ -689,6 +690,7 @@ var reverseAgentMapEnum = map[int]string{
55: "curl",
56: "python",
57: "go",
58: "headlesschrome",
}
var markToAgent = map[string]string{
"OPR": "opera",
@ -750,6 +752,7 @@ var markToAgent = map[string]string{
"curl": "curl",
"python": "python",
"Go": "go",
"HeadlessChrome": "headlesschrome",
}
var markToID = map[string]int{
"OPR": 3,
@ -811,6 +814,7 @@ var markToID = map[string]int{
"curl": 55,
"python": 56,
"Go": 57,
"HeadlessChrome": 58,
}
/*var agentRank = map[string]int{
"opera":9,

View File

@ -241,6 +241,7 @@
"curl":"curl",
"python":"Python Bot",
"go":"Go Bot",
"headlesschrome":"Headless Chrome",
"suspicious":"Suspicious",
"unknown":"Unknown",
"blank":"Blank",

View File

@ -289,6 +289,7 @@ func main() {
"curl",
"python",
"go",
"headlesschrome",
}
tmplVars.AllAgentMap = make(map[string]int)
@ -358,6 +359,7 @@ func main() {
"curl",
"python",
"Go",
"HeadlessChrome",
}
tmplVars.AllAgentMarks = map[string]string{
@ -422,6 +424,7 @@ func main() {
"curl": "curl",
"python": "python",
"Go": "go",
"HeadlessChrome": "headlesschrome",
}
tmplVars.AllAgentMarkIDs = make(map[string]int)