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 b6e43e87f0
commit 183a6b6d2a

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