mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
general: suport results feedback in more protocols
This commit is contained in:
1 parent
c5881a6db3
commit
b99a730968
9 files changed
+33
-24
No files matched your search
@@ -83,6 +83,7 @@ func (s *TCPTun) Serve(c net.Conn) {
|
||||
rc, dialer, err := s.proxy.Dial("tcp", s.raddr)
|
||||
if err != nil {
|
||||
log.F("[tcptun] %s <-> %s via %s, error in dial: %v", c.RemoteAddr(), s.addr, dialer.Addr(), err)
|
||||
s.proxy.Record(dialer, false)
|
||||
return
|
||||
}
|
||||
defer rc.Close()
|
||||
@@ -95,5 +96,6 @@ func (s *TCPTun) Serve(c net.Conn) {
|
||||
return // ignore i/o timeout
|
||||
}
|
||||
log.F("relay error: %v", err)
|
||||
s.proxy.Record(dialer, false)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user