mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-01 07:30:02 +00:00
Refine is_remote_dns defination
This commit is contained in:
+3
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user