summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-08-23 11:19:36 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-08-23 12:12:05 (GMT)
commit75cae63d2c518dc018e839c606240f8263fe6a87 (patch)
tree9d6de319e078cfa905efbf5a622ec4b456a8d8fb /plugins
parentbcb5fb24b08bf536e12526733c32f9af2c93dd0a (diff)
downloadconnman-75cae63d2c518dc018e839c606240f8263fe6a87.zip
connman-75cae63d2c518dc018e839c606240f8263fe6a87.tar.gz
connman-75cae63d2c518dc018e839c606240f8263fe6a87.tar.bz2
l2tp: Get VPN gateway resolved IP address
We should not use the Host variable from provider as it can contain a non-resolved address.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/l2tp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/l2tp.c b/plugins/l2tp.c
index 39c9618..dfb56d9 100644
--- a/plugins/l2tp.c
+++ b/plugins/l2tp.c
@@ -218,7 +218,7 @@ static int l2tp_notify(DBusMessage *msg, struct connman_provider *provider)
return VPN_STATE_FAILURE;
}
- value = connman_provider_get_string(provider, "Host");
+ value = connman_provider_get_string(provider, "HostIP");
if (value != NULL) {
connman_provider_set_string(provider, "Gateway", value);
gateway = g_strdup(value);