deltas are now private only
This commit is contained in:
parent
9e37c6af02
commit
8775764fb6
1 changed files with 5 additions and 3 deletions
|
@ -65,10 +65,12 @@ func (s Server) serveAnnounce(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
writeAnnounceResponse(w, announce, user, torrent)
|
if s.conf.Private {
|
||||||
|
delta := models.NewAnnounceDelta(announce, peer, user, torrent, created, snatched)
|
||||||
|
s.backendConn.RecordAnnounce(delta)
|
||||||
|
}
|
||||||
|
|
||||||
delta := models.NewAnnounceDelta(announce, peer, user, torrent, created, snatched)
|
writeAnnounceResponse(w, announce, user, torrent)
|
||||||
s.backendConn.RecordAnnounce(delta)
|
|
||||||
|
|
||||||
log.Infof("chihaya: handled announce from %s", announce.IP)
|
log.Infof("chihaya: handled announce from %s", announce.IP)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue