Tracker.Conn interface update to better fit API

This commit is contained in:
Jimmy Zelinskie
2014-07-07 22:44:27 -04:00
parent 9e94643379
commit 99ac8f77c8
5 changed files with 54 additions and 28 deletions

View File

@@ -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