mirror of
https://github.com/SunBK201/UA3F.git
synced 2025-12-16 08:44:29 +00:00
feat: pass flows without ua
This commit is contained in:
parent
6a3b60a8ee
commit
f6b904cbf5
3
main.go
3
main.go
@ -211,6 +211,9 @@ func MyCopyBuffer(dst io.Writer, src io.Reader, parser *HTTPParser) {
|
||||
}
|
||||
} else {
|
||||
printAndLog(fmt.Sprintf("[%s] Not found User-Agent", string(parser.Host())), logger, syslog.LOG_INFO)
|
||||
dst.Write(buf[0:nr])
|
||||
io.Copy(dst, src)
|
||||
return
|
||||
}
|
||||
bodyLen := int(parser.ContentLength())
|
||||
if bodyLen == -1 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user