Repair 503 links
This commit is contained in:
@@ -74,7 +74,7 @@ func (gf *GetFile) ServeFile(directory, torrentName, fileName string, resp http.
|
||||
|
||||
log.Debugf("Opening file %s from torrent %s (%s)", fileName, torrentName, link)
|
||||
unrestrict := torMgr.UnrestrictUntilOk(link)
|
||||
if unrestrict == nil {
|
||||
if unrestrict == nil || unrestrict.Link == "" {
|
||||
log.Warnf("File %s cannot be unrestricted (link=%s)", fileName, link)
|
||||
if cfg.EnableRepair() {
|
||||
file.Link = "repair"
|
||||
|
||||
Reference in New Issue
Block a user