mirror of
https://github.com/sot-tech/mochi.git
synced 2026-06-12 15:53:32 -07:00
tracker: rm badrequest when state is unknown
This assumption was just totally wrong. If there is any kind of packet loss or the tracker starts up to a pre-existing swarm, all the peers will get bad request responses.
This commit is contained in:
@@ -155,11 +155,6 @@ func (tkr *Tracker) updatePeer(ann *models.Announce, peer *models.Peer) (created
|
||||
}
|
||||
|
||||
default:
|
||||
if ann.Event != "" && ann.Event != "started" {
|
||||
err = models.ErrBadRequest
|
||||
return
|
||||
}
|
||||
|
||||
if ann.Left == 0 {
|
||||
err = tkr.PutSeeder(t.Infohash, p)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user