Fix the SNI issue

This commit is contained in:
Max Lv
2018-04-08 22:32:21 -07:00
parent c377dcac97
commit dada99c5b6
+2 -2
View File
@@ -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