mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-07 00:01:49 -04:00
android: Only allow DNS queries for the configured hostname
This commit is contained in:
parent
e77f226a0f
commit
945832c67d
@ -749,6 +749,8 @@ android_service_t *android_service_create(android_creds_t *creds, char *type,
|
|||||||
.type = type,
|
.type = type,
|
||||||
.tunfd = -1,
|
.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);
|
charon->bus->add_listener(charon->bus, &this->public.listener);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user