mirror of
https://github.com/onyx-and-iris/q3rcon-proxy.git
synced 2025-01-18 08:40:53 +00:00
log invalid response packets
This commit is contained in:
parent
dfcdb6a96a
commit
ca33a6a390
@ -65,7 +65,9 @@ func (s *Session) listen() error {
|
|||||||
|
|
||||||
func (s *Session) proxyFrom(buf []byte) error {
|
func (s *Session) proxyFrom(buf []byte) error {
|
||||||
if !s.isResponsePacket(buf) {
|
if !s.isResponsePacket(buf) {
|
||||||
return nil
|
err := errors.New("not a response packet")
|
||||||
|
log.Error(err.Error())
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
s.updateTime = time.Now()
|
s.updateTime = time.Now()
|
||||||
|
Loading…
Reference in New Issue
Block a user