aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/android/android_handler.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2010-05-11 18:31:24 +0200
committerTobias Brunner <tobias@strongswan.org>2010-06-15 19:58:58 +0200
commit499af811c0b2c74b6601d1813798359696d57192 (patch)
tree5627280c1774d0710f633a99049fe2a7da09fc4c /src/libcharon/plugins/android/android_handler.c
parentbe00d219cc11dde9f3e14231d3ab9678b0c90f8a (diff)
downloadstrongswan-499af811c0b2c74b6601d1813798359696d57192.tar.bz2
strongswan-499af811c0b2c74b6601d1813798359696d57192.tar.xz
Use vpn.dns* to store DNS servers (Android manages net.dns* using these).
Diffstat (limited to 'src/libcharon/plugins/android/android_handler.c')
-rw-r--r--src/libcharon/plugins/android/android_handler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcharon/plugins/android/android_handler.c b/src/libcharon/plugins/android/android_handler.c
index a475eeaab..ec3ff7a51 100644
--- a/src/libcharon/plugins/android/android_handler.c
+++ b/src/libcharon/plugins/android/android_handler.c
@@ -75,7 +75,7 @@ host_t *get_dns_server(int index)
host_t *dns = NULL;
char key[10], value[PROPERTY_VALUE_MAX];
- if (snprintf(key, sizeof(key), "net.dns%d", index) >= sizeof(key))
+ if (snprintf(key, sizeof(key), "vpn.dns%d", index) >= sizeof(key))
{
return NULL;
}
@@ -94,7 +94,7 @@ bool set_dns_server(int index, host_t *dns)
{
char key[10], value[PROPERTY_VALUE_MAX];
- if (snprintf(key, sizeof(key), "net.dns%d", index) >= sizeof(key))
+ if (snprintf(key, sizeof(key), "vpn.dns%d", index) >= sizeof(key))
{
return FALSE;
}