mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 04:17:23 +00:00
Add download limit.
This commit is contained in:
@@ -74,3 +74,7 @@ func MaxFileSize() int64 {
|
||||
func AllowRegister() bool {
|
||||
return config.AllowRegister
|
||||
}
|
||||
|
||||
func MaxDownloadsPerDayForSingleIP() int {
|
||||
return config.MaxDownloadsPerDayForSingleIP
|
||||
}
|
||||
|
Reference in New Issue
Block a user