Add download limit.

This commit is contained in:
2025-05-14 22:06:22 +08:00
parent 5c08ab34ea
commit 4b986ffd86
2 changed files with 35 additions and 3 deletions

View File

@@ -74,3 +74,7 @@ func MaxFileSize() int64 {
func AllowRegister() bool {
return config.AllowRegister
}
func MaxDownloadsPerDayForSingleIP() int {
return config.MaxDownloadsPerDayForSingleIP
}