From 57eb040f50b9b46bfc90230dfac8a098e8716861 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Fri, 13 Jun 2014 08:47:10 +0800 Subject: [PATCH] fix a bug --- src/local.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/local.c b/src/local.c index ba259d85..e82511c4 100644 --- a/src/local.c +++ b/src/local.c @@ -432,8 +432,8 @@ static void server_recv_cb (EV_P_ ev_io *w, int revents) LOGD("connect to %s:%s", host, port); } - if ((request->atyp == 1 && acl_contains_ip(host)) - || (request->atyp = 3 && acl_contains_domain(host))) + if ((acl && request->atyp == 1 && acl_contains_ip(host)) + || (acl && request->atyp = 3 && acl_contains_domain(host))) { remote = connect_to_remote(server->listener, host, port); remote->direct = 1;