mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-08 07:10:56 +03:00
plugin: reload IP filter plugin on demand
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -209,8 +209,9 @@ func LimitRate(protocol, ip string) (time.Duration, error) {
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
// Reload reloads the whitelist and the defender's block and safe lists
|
||||
// Reload reloads the whitelist, the IP filter plugin and the defender's block and safe lists
|
||||
func Reload() error {
|
||||
plugin.Handler.ReloadFilter()
|
||||
var errWithelist error
|
||||
if Config.whitelist != nil {
|
||||
errWithelist = Config.whitelist.reload()
|
||||
|
||||
Reference in New Issue
Block a user