From ce0561a9992707a8409b9ca5a03f7aa7476608a1 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Mon, 14 Mar 2016 09:50:59 +0800 Subject: [PATCH] Fix #560 --- src/server.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/server.c b/src/server.c index c95d51fa..f26a8696 100644 --- a/src/server.c +++ b/src/server.c @@ -639,11 +639,9 @@ static void server_recv_cb(EV_P_ ev_io *w, int revents) LOGE("authentication error from %s", peer_name); if (acl) { if (acl_get_mode() == BLACK_LIST) { + // Auto ban enabled only in black list mode acl_add_ip(peer_name); LOGE("add %s to the black list", peer_name); - } else { - acl_remove_ip(peer_name); - LOGE("remove %s from the white list", peer_name); } } }