add headless chrome ua
This commit is contained in:
parent
fbc50c9086
commit
1dc69ed89e
|
@ -629,6 +629,7 @@ var agentMapEnum = map[string]int{
|
||||||
"curl": 55,
|
"curl": 55,
|
||||||
"python": 56,
|
"python": 56,
|
||||||
"go": 57,
|
"go": 57,
|
||||||
|
"headlesschrome": 58,
|
||||||
}
|
}
|
||||||
var reverseAgentMapEnum = map[int]string{
|
var reverseAgentMapEnum = map[int]string{
|
||||||
0: "unknown",
|
0: "unknown",
|
||||||
|
@ -689,6 +690,7 @@ var reverseAgentMapEnum = map[int]string{
|
||||||
55: "curl",
|
55: "curl",
|
||||||
56: "python",
|
56: "python",
|
||||||
57: "go",
|
57: "go",
|
||||||
|
58: "headlesschrome",
|
||||||
}
|
}
|
||||||
var markToAgent = map[string]string{
|
var markToAgent = map[string]string{
|
||||||
"OPR": "opera",
|
"OPR": "opera",
|
||||||
|
@ -750,6 +752,7 @@ var markToAgent = map[string]string{
|
||||||
"curl": "curl",
|
"curl": "curl",
|
||||||
"python": "python",
|
"python": "python",
|
||||||
"Go": "go",
|
"Go": "go",
|
||||||
|
"HeadlessChrome": "headlesschrome",
|
||||||
}
|
}
|
||||||
var markToID = map[string]int{
|
var markToID = map[string]int{
|
||||||
"OPR": 3,
|
"OPR": 3,
|
||||||
|
@ -811,6 +814,7 @@ var markToID = map[string]int{
|
||||||
"curl": 55,
|
"curl": 55,
|
||||||
"python": 56,
|
"python": 56,
|
||||||
"Go": 57,
|
"Go": 57,
|
||||||
|
"HeadlessChrome": 58,
|
||||||
}
|
}
|
||||||
/*var agentRank = map[string]int{
|
/*var agentRank = map[string]int{
|
||||||
"opera":9,
|
"opera":9,
|
||||||
|
|
|
@ -241,6 +241,7 @@
|
||||||
"curl":"curl",
|
"curl":"curl",
|
||||||
"python":"Python Bot",
|
"python":"Python Bot",
|
||||||
"go":"Go Bot",
|
"go":"Go Bot",
|
||||||
|
"headlesschrome":"Headless Chrome",
|
||||||
"suspicious":"Suspicious",
|
"suspicious":"Suspicious",
|
||||||
"unknown":"Unknown",
|
"unknown":"Unknown",
|
||||||
"blank":"Blank",
|
"blank":"Blank",
|
||||||
|
|
|
@ -289,6 +289,7 @@ func main() {
|
||||||
"curl",
|
"curl",
|
||||||
"python",
|
"python",
|
||||||
"go",
|
"go",
|
||||||
|
"headlesschrome",
|
||||||
}
|
}
|
||||||
|
|
||||||
tmplVars.AllAgentMap = make(map[string]int)
|
tmplVars.AllAgentMap = make(map[string]int)
|
||||||
|
@ -358,6 +359,7 @@ func main() {
|
||||||
"curl",
|
"curl",
|
||||||
"python",
|
"python",
|
||||||
"Go",
|
"Go",
|
||||||
|
"HeadlessChrome",
|
||||||
}
|
}
|
||||||
|
|
||||||
tmplVars.AllAgentMarks = map[string]string{
|
tmplVars.AllAgentMarks = map[string]string{
|
||||||
|
@ -422,6 +424,7 @@ func main() {
|
||||||
"curl": "curl",
|
"curl": "curl",
|
||||||
"python": "python",
|
"python": "python",
|
||||||
"Go": "go",
|
"Go": "go",
|
||||||
|
"HeadlessChrome": "headlesschrome",
|
||||||
}
|
}
|
||||||
|
|
||||||
tmplVars.AllAgentMarkIDs = make(map[string]int)
|
tmplVars.AllAgentMarkIDs = make(map[string]int)
|
||||||
|
|
Loading…
Reference in New Issue