mirror of
https://github.com/onyx-and-iris/q3rcon-proxy.git
synced 2025-01-18 00:30:54 +00:00
rename isBadRconRequest to isBadRconResponse
This commit is contained in:
parent
3e039824de
commit
0935fc1190
@ -64,7 +64,7 @@ func (s *session) proxyFrom(buf []byte) error {
|
||||
}
|
||||
|
||||
if s.isRconResponsePacket(buf) {
|
||||
if s.isBadRconRequest(buf) {
|
||||
if s.isBadRconResponse(buf) {
|
||||
log.Infof("Response: Bad rcon from %s", s.caddr.IP)
|
||||
} else {
|
||||
log.Debugf("Response: %s", string(buf[10:]))
|
||||
|
@ -27,6 +27,6 @@ func (v *validator) isValidResponsePacket(buf []byte) bool {
|
||||
return v.isRconResponsePacket(buf) || v.isQueryResponsePacket(buf)
|
||||
}
|
||||
|
||||
func (v *validator) isBadRconRequest(buf []byte) bool {
|
||||
func (v *validator) isBadRconResponse(buf []byte) bool {
|
||||
return string(buf[10:18]) == "Bad rcon"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user