mirror of
https://github.com/onyx-and-iris/q3rcon-proxy.git
synced 2025-01-18 16:50:54 +00:00
only log client IP (remove port)
log game server address
This commit is contained in:
parent
d8015c921c
commit
a01df2e905
@ -65,7 +65,7 @@ func (s *Session) proxyTo(buf []byte) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
parts := strings.Split(string(buf), " ")
|
parts := strings.Split(string(buf), " ")
|
||||||
log.Info("From [", s.caddr, "] Command: ", strings.Join(parts[2:], " "))
|
log.Info("From [", s.caddr.IP, "] To [", s.serverConn.RemoteAddr().String(), "] Command: ", strings.Join(parts[2:], " "))
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user