Browse Source

Refine is_remote_dns defination

pull/2304/head
Max Lv 6 years ago
parent
commit
b430124ed8
1 changed files with 3 additions and 3 deletions
  1. 6
      src/local.c

6
src/local.c

@ -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;

Loading…
Cancel
Save