feat: normalize user agent for curl requests in pass-through records

This commit is contained in:
SunBK201 2025-11-02 02:06:33 +08:00
parent ec59323497
commit 6f1cfbd718

View File

@ -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