mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-28 19:53:46 +00:00
Fix a bug in bypassing
This commit is contained in:
+4
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user