mirror of
https://github.com/sot-tech/mochi.git
synced 2026-05-13 08:38:36 -07:00
Tracker.Conn interface update to better fit API
This commit is contained in:
@@ -31,7 +31,7 @@ func (t *Tracker) ServeAnnounce(w http.ResponseWriter, r *http.Request, p httpro
|
||||
}
|
||||
|
||||
if t.cfg.Whitelist {
|
||||
err = conn.ClientWhitelisted(ann.ClientID())
|
||||
err = conn.FindClient(ann.ClientID())
|
||||
if err == tracker.ErrClientUnapproved {
|
||||
fail(w, r, err)
|
||||
return http.StatusOK
|
||||
|
||||
Reference in New Issue
Block a user