tracker: fix reference to config
This commit is contained in:
parent
80c068c97a
commit
1bf788a99b
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||||
|
|
Loading…
Add table
Reference in a new issue