mirror of
https://github.com/SunBK201/UA3F.git
synced 2025-12-16 08:44:29 +00:00
feat: normalize user agent for curl requests in pass-through records
This commit is contained in:
parent
ec59323497
commit
6f1cfbd718
@ -29,6 +29,9 @@ func StartRecorder() {
|
||||
}
|
||||
}
|
||||
case record := <-passThroughRecordChan:
|
||||
if strings.HasPrefix(record.UA, "curl/") {
|
||||
record.UA = "curl/*"
|
||||
}
|
||||
if r, exists := passThroughRecords[record.UA]; exists {
|
||||
r.Count++
|
||||
r.Host = record.Host
|
||||
|
||||
Loading…
Reference in New Issue
Block a user