Use vpn.dns* to store DNS servers (Android manages net.dns* using these).
authorTobias Brunner <tobias@strongswan.org>
Tue, 11 May 2010 16:31:24 +0000 (18:31 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 15 Jun 2010 17:58:58 +0000 (19:58 +0200)
src/libcharon/plugins/android/android_handler.c

index a475eea..ec3ff7a 100644 (file)
@@ -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;
        }