tracker: fix reference to config

This commit is contained in:
Jimmy Zelinskie 2015-03-23 20:43:33 -04:00
parent 80c068c97a
commit 1bf788a99b

View file

@ -27,7 +27,7 @@ func (tkr *Tracker) HandleAnnounce(ann *models.Announce, w Writer) (err error) {
torrent, err := tkr.FindTorrent(ann.Infohash) torrent, err := tkr.FindTorrent(ann.Infohash)
if err == models.ErrTorrentDNE && cfg.CreateOnAnnounce { if err == models.ErrTorrentDNE && tkr.Config.CreateOnAnnounce {
torrent = &models.Torrent{ torrent = &models.Torrent{
Infohash: ann.Infohash, Infohash: ann.Infohash,
Seeders: models.NewPeerMap(true, tkr.Config), Seeders: models.NewPeerMap(true, tkr.Config),