From 9241e545f4bca123d7e256486d0ad4c374602d11 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Sun, 5 Mar 2017 15:58:59 +0800 Subject: [PATCH] Don't apply ACL on DNS port on Android --- src/local.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/local.c b/src/local.c index 76076354..53888f3e 100644 --- a/src/local.c +++ b/src/local.c @@ -660,7 +660,7 @@ server_recv_cb(EV_P_ ev_io *w, int revents) LOGI("connect to [%s]:%s", ip, port); } - if (acl) { + if (acl && !(vpn && strcmp(port, "53") == 0)) { int host_match = acl_match_host(host); int bypass = 0; if (host_match > 0)