mirror of
https://github.com/onyx-and-iris/q3rcon-proxy.git
synced 2026-04-07 15:53:29 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7138515904 |
@@ -64,8 +64,12 @@ func (s *Session) proxyTo(buf []byte) error {
|
||||
log.Println(err)
|
||||
return err
|
||||
}
|
||||
parts := strings.Split(string(buf), " ")
|
||||
log.Info("From [", s.caddr.IP, "] To [", s.serverConn.RemoteAddr().String(), "] Command: ", strings.Join(parts[2:], " "))
|
||||
|
||||
cmd := string(buf)
|
||||
if cmd[:8] == "\xff\xff\xff\xffrcon" {
|
||||
parts := strings.Split(cmd, " ")
|
||||
log.Info("From [", s.caddr.IP, "] To [", s.serverConn.RemoteAddr().String(), "] Command: ", strings.Join(parts[2:], " "))
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user