mirror of
https://github.com/SunBK201/UA3F.git
synced 2025-12-16 16:57:08 +00:00
fix: fix timeout error in noua case
This commit is contained in:
parent
087ea9e6a8
commit
2e4aefd7ec
@ -430,6 +430,9 @@ func transfer(dst net.Conn, src net.Conn, destAddrPort string) {
|
||||
if uaStr == "" {
|
||||
cache.Add(destAddrPort, destAddrPort)
|
||||
logrus.Debug(fmt.Sprintf("[%s] Not found User-Agent, Add LRU Relay Cache, Cache Len: %d", destAddrPort, cache.Len()))
|
||||
if err = request.Write(dst); err != nil {
|
||||
logrus.Error(fmt.Sprintf("[%s][%s] write error: %s", destAddrPort, src.(*net.TCPConn).RemoteAddr().String(), err.Error()))
|
||||
}
|
||||
io.Copy(dst, srcReader)
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user