mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
reject: add a virtual proxy reject
This commit is contained in:
1 parent
f9a21f5951
commit
2e44d79db8
11 files changed
+54
-12
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user