log invalid response packets

This commit is contained in:
onyx-and-iris 2024-03-20 18:10:15 +00:00
parent dfcdb6a96a
commit ca33a6a390

View File

@ -65,7 +65,9 @@ func (s *Session) listen() error {
func (s *Session) proxyFrom(buf []byte) error {
if !s.isResponsePacket(buf) {
return nil
err := errors.New("not a response packet")
log.Error(err.Error())
return err
}
s.updateTime = time.Now()