Compare commits

..

No commits in common. "0935fc1190716424444f351f15b33d76e51e36b5" and "0c054377babb8addd3d6b613ea81640a60856c6f" have entirely different histories.

2 changed files with 1 additions and 9 deletions

View File

@ -64,11 +64,7 @@ func (s *session) proxyFrom(buf []byte) error {
} }
if s.isRconResponsePacket(buf) { if s.isRconResponsePacket(buf) {
if s.isBadRconResponse(buf) { log.Debugf("Response: %s", string(buf[10:]))
log.Infof("Response: Bad rcon from %s", s.caddr.IP)
} else {
log.Debugf("Response: %s", string(buf[10:]))
}
} }
return nil return nil

View File

@ -26,7 +26,3 @@ func (v *validator) isQueryResponsePacket(buf []byte) bool {
func (v *validator) isValidResponsePacket(buf []byte) bool { func (v *validator) isValidResponsePacket(buf []byte) bool {
return v.isRconResponsePacket(buf) || v.isQueryResponsePacket(buf) return v.isRconResponsePacket(buf) || v.isQueryResponsePacket(buf)
} }
func (v *validator) isBadRconResponse(buf []byte) bool {
return string(buf[10:18]) == "Bad rcon"
}