Browse Source

Fix a bug in bypassing

pull/2174/head
Max Lv 6 years ago
parent
commit
57e74eaa34
1 changed files with 4 additions and 1 deletions
  1. 5
      src/local.c

5
src/local.c

@ -530,7 +530,10 @@ server_handshake(EV_P_ ev_io *w, buffer_t *buf)
goto not_bypass;
}
}
int ip_match = resolved ? acl_match_host(ip) : 0;
int ip_match = (resolved || atyp == SOCKS5_ATYP_IPV4
|| atyp == SOCKS5_ATYP_IPV6) ? acl_match_host(ip) : 0;
switch (get_acl_mode()) {
case BLACK_LIST:
if (ip_match > 0)

Loading…
Cancel
Save