mirror of
https://github.com/nadoo/glider.git
synced 2026-11-23 23:49:41 +08:00
proxy: added the ability to log forwarder
This commit is contained in:
1 parent
c2425e67de
commit
063dc1bc01
22 files changed
+138
-141
No files matched your search
@@ -69,7 +69,7 @@ func (s *UoTTun) ListenAndServe() {
|
||||
continue
|
||||
}
|
||||
|
||||
rc, err := s.dialer.Dial("uot", s.raddr)
|
||||
rc, p, err := s.dialer.Dial("uot", s.raddr)
|
||||
if err != nil {
|
||||
log.F("[uottun] failed to connect to server %v: %v", s.raddr, err)
|
||||
continue
|
||||
@@ -99,7 +99,7 @@ func (s *UoTTun) ListenAndServe() {
|
||||
continue
|
||||
}
|
||||
|
||||
log.F("[uottun] %s <-> %s", clientAddr, s.raddr)
|
||||
log.F("[uottun] %s <-> %s, %s", clientAddr, s.raddr, p)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user