From dada99c5b625174f337881a23f514ceb112290a8 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Sun, 8 Apr 2018 22:32:21 -0700 Subject: [PATCH] Fix the SNI issue --- src/local.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/local.c b/src/local.c index 785e1c54..3cff2f75 100644 --- a/src/local.c +++ b/src/local.c @@ -552,9 +552,9 @@ server_handshake(EV_P_ ev_io *w, buffer_t *buf) if (remote == NULL) { remote = create_remote(server->listener, NULL); - if (sni_detected + if (sni_detected && acl #ifdef __ANDROID__ - && acl && !is_remote_dns + && !is_remote_dns #endif ) { // Reconstruct address buffer