tracker/udp/client.go | 7 ++++++- diff --git a/tracker/udp/client.go b/tracker/udp/client.go index 44d051371922859a3fa9d6116610ab47e988e799..91625380ccfdd34e961b4d43c30561e851de109e 100644 --- a/tracker/udp/client.go +++ b/tracker/udp/client.go @@ -10,6 +10,7 @@ "net" "time" "github.com/anacrolix/dht/v2/krpc" + "github.com/anacrolix/log" "github.com/protolambda/ctxlock" ) @@ -224,7 +225,11 @@ addr = dr.Addr } else if dr.Header.Action == ActionError { // udp://tracker.torrent.eu.org:451/announce frequently returns "Connection ID // missmatch.\x00" - err = ErrorResponse{Message: string(dr.Body)} + stringBody := string(dr.Body) + err = ErrorResponse{Message: stringBody} + if stringBody == ConnectionIdMissmatchNul { + err = log.WithLevel(log.Debug, err) + } // Force a reconnection. Probably any error is worth doing this for, but the one we're // specifically interested in is ConnectionIdMissmatchNul. cl.connIdIssued = time.Time{}