Support hostname resolving in VPN mode

This commit is contained in:
Mygod
2018-08-24 14:00:13 +08:00
parent ded41f2e53
commit 307088ed4a
2 changed files with 14 additions and 7 deletions
+4
View File
@@ -141,6 +141,10 @@ get_sockaddr(char *host, char *port,
}
return 0;
} else {
#ifdef __ANDROID__
extern int vpn;
assert(!vpn); // protecting DNS packets isn't supported yet
#endif
struct addrinfo hints;
struct addrinfo *result, *rp;