Browse Source

Fix #1051

pull/1060/head
Max Lv 7 years ago
parent
commit
dc96bced39
1 changed files with 2 additions and 1 deletions
  1. 3
      src/server.c

3
src/server.c

@ -1525,7 +1525,8 @@ accept_cb(EV_P_ ev_io *w, int revents)
in_white_list = 1; in_white_list = 1;
} }
} }
if (!in_white_list && check_block_list(peer_name)) {
if (!in_white_list && plugin == NULL
&& check_block_list(peer_name)) {
LOGE("block all requests from %s", peer_name); LOGE("block all requests from %s", peer_name);
#ifdef __linux__ #ifdef __linux__
set_linger(serverfd); set_linger(serverfd);

Loading…
Cancel
Save