mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
socks5: avoid untyped nil printing (fix #322)
This commit is contained in:
1 parent
decabcca6a
commit
6c88d8bde4
5 files changed
+33
-48
No files matched your search
@@ -163,7 +163,7 @@ func (s *Socks5) serveSession(session *Session) {
|
||||
case msg := <-session.msgCh:
|
||||
_, err = dstPC.WriteTo(msg.msg, msg.dst)
|
||||
if err != nil {
|
||||
log.F("[socks5u] writeTo %s error: %v", nil, err)
|
||||
log.F("[socks5u] writeTo %s error: %v", msg.dst, err)
|
||||
}
|
||||
pool.PutBuffer(msg.msg)
|
||||
msg.msg = nil
|
||||
|
||||
Reference in new issue
Block a user