magneticod: ignore 204 Method Unknown DHT errors
This commit is contained in:
parent
3a99ce5e02
commit
58ef12c79d
@ -173,8 +173,10 @@ func (p *Protocol) onMessage(msg *Message, addr *net.UDPAddr) {
|
||||
}
|
||||
}
|
||||
case "e":
|
||||
// TODO: currently ignoring Server Error 202
|
||||
if msg.E.Code != 202 {
|
||||
// Ignore the following:
|
||||
// - 202 Server Error
|
||||
// - 204 Method Unknown / Unknown query type
|
||||
if msg.E.Code != 202 && msg.E.Code != 204 {
|
||||
zap.L().Sugar().Debugf("Protocol error received: `%s` (%d)", msg.E.Message, msg.E.Code)
|
||||
}
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user