mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
ipfilter plugin: add protocol
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -317,7 +317,7 @@ func Reload() error {
|
||||
|
||||
// IsBanned returns true if the specified IP address is banned
|
||||
func IsBanned(ip, protocol string) bool {
|
||||
if plugin.Handler.IsIPBanned(ip) {
|
||||
if plugin.Handler.IsIPBanned(ip, protocol) {
|
||||
return true
|
||||
}
|
||||
if Config.defender == nil {
|
||||
|
||||
Reference in New Issue
Block a user