no need to call String() explicitly here

This commit is contained in:
onyx-and-iris 2024-03-24 12:29:48 +00:00
parent 107f914d3b
commit ab548d669a

View File

@ -108,7 +108,7 @@ func (s *Session) proxyTo(buf []byte) error {
if s.isRconRequestPacket(buf) {
parts := strings.Split(string(buf), " ")
log.Infof("From [%s] To [%s] Command: %s", s.caddr.IP.String(), s.serverConn.RemoteAddr().String(), strings.Join(parts[2:], " "))
log.Infof("From [%s] To [%s] Command: %s", s.caddr.IP, s.serverConn.RemoteAddr(), strings.Join(parts[2:], " "))
}
return nil