small fix on unrestrictable links

This commit is contained in:
Ben Sarmiento
2023-10-29 17:38:05 +01:00
parent 56a0220de2
commit b2e957cb4c
2 changed files with 2 additions and 1 deletions

View File

@@ -78,6 +78,7 @@ func HandleGetRequest(w http.ResponseWriter, r *http.Request, t *torrent.Torrent
t.HideTheFile(torrent, file)
}
http.Redirect(w, r, "https://send.nukes.wtf/tDeTd0", http.StatusFound)
return
} else if resp.Filename != filenameV2 {
actualExt := filepath.Ext(resp.Filename)
expectedExt := filepath.Ext(filenameV2)