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; uint64_t rx = 0;
ev_tstamp last = 0; ev_tstamp last = 0;
int is_remote_dns = 0;
int is_remote_dns = 1; // resolve hostname remotely
char *stat_path = NULL; char *stat_path = NULL;
#endif #endif
@ -580,7 +580,7 @@ not_bypass:
if (sni_detected && acl if (sni_detected && acl
#ifdef __ANDROID__ #ifdef __ANDROID__
&& !is_remote_dns
&& is_remote_dns
#endif #endif
) { ) {
// Reconstruct address buffer // Reconstruct address buffer
@ -1593,7 +1593,7 @@ main(int argc, char **argv)
stat_path = optarg; stat_path = optarg;
break; break;
case 'D': case 'D':
is_remote_dns = 1;
is_remote_dns = 0;
break; break;
case 'V': case 'V':
vpn = 1; vpn = 1;

Loading…
Cancel
Save