mirror of
https://github.com/SunBK201/UA3F.git
synced 2025-12-16 16:57:08 +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 {
|
} else {
|
||||||
printAndLog(fmt.Sprintf("[%s] Not found User-Agent", string(parser.Host())), logger, syslog.LOG_INFO)
|
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())
|
bodyLen := int(parser.ContentLength())
|
||||||
if bodyLen == -1 {
|
if bodyLen == -1 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user