mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-03 00:13:42 +00:00
Support hostname resolving in VPN mode
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user