android: Only allow DNS queries for the configured hostname

This commit is contained in:
Tobias Brunner 2014-07-16 16:20:00 +02:00
parent e77f226a0f
commit 945832c67d

View File

@ -749,6 +749,8 @@ android_service_t *android_service_create(android_creds_t *creds, char *type,
.type = type,
.tunfd = -1,
);
/* only allow queries for the VPN gateway */
this->dns_proxy->add_hostname(this->dns_proxy, gateway);
charon->bus->add_listener(charon->bus, &this->public.listener);