reject: add a virtual proxy reject

This commit is contained in:
nadoo committed 2019-03-07 23:34:29 +08:00
1 parent f9a21f5951
commit 2e44d79db8
11 files changed
+54 -12

No files matched your search

+1 -1
View File
@@ -106,7 +106,7 @@ func (s *RedirProxy) Serve(c net.Conn) {
rc, err := s.dialer.Dial("tcp", tgt.String())
if err != nil {
log.F("[redir] failed to connect to target: %v", err)
log.F("[redir] %s <-> %s, error in dial: %v", c.RemoteAddr(), tgt, err)
return
}
defer rc.Close()