forked from sim1222-mirror/wrapper
change dns
This commit is contained in:
parent
aa1886e487
commit
86d1c1a507
2
test.c
2
test.c
@ -113,7 +113,7 @@ static inline void init() {
|
|||||||
// raise(SIGSTOP);
|
// raise(SIGSTOP);
|
||||||
fprintf(stderr, "[+] starting...\n");
|
fprintf(stderr, "[+] starting...\n");
|
||||||
setenv("ANDROID_DNS_MODE", "local", 1);
|
setenv("ANDROID_DNS_MODE", "local", 1);
|
||||||
static const char *resolvers[2] = {"1.1.1.1", "1.0.0.1"};
|
static const char *resolvers[2] = {"1.1.1.1", "223.5.5.5"};
|
||||||
_resolv_set_nameservers_for_net(0, resolvers, 2, ".");
|
_resolv_set_nameservers_for_net(0, resolvers, 2, ".");
|
||||||
#ifndef MyRelease
|
#ifndef MyRelease
|
||||||
subhook_install(subhook_new(
|
subhook_install(subhook_new(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user