Refine is_remote_dns defination

This commit is contained in:
Max Lv
2019-02-13 19:32:32 +08:00
parent ed67a1abcb
commit b430124ed8
+3 -3
View File
@@ -92,7 +92,7 @@ uint64_t tx = 0;
uint64_t rx = 0;
ev_tstamp last = 0;
int is_remote_dns = 0;
int is_remote_dns = 1; // resolve hostname remotely
char *stat_path = NULL;
#endif
@@ -580,7 +580,7 @@ not_bypass:
if (sni_detected && acl
#ifdef __ANDROID__
&& !is_remote_dns
&& is_remote_dns
#endif
) {
// Reconstruct address buffer
@@ -1593,7 +1593,7 @@ main(int argc, char **argv)
stat_path = optarg;
break;
case 'D':
is_remote_dns = 1;
is_remote_dns = 0;
break;
case 'V':
vpn = 1;