summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-08-23 11:19:37 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-08-23 12:12:14 (GMT)
commit09acb9847ebae880a0d0f3bc58c87c8a74ef093f (patch)
tree0e85ca8215e7d4305643e0a56440cb5fa9c7e670 /plugins
parent75cae63d2c518dc018e839c606240f8263fe6a87 (diff)
downloadconnman-09acb9847ebae880a0d0f3bc58c87c8a74ef093f.zip
connman-09acb9847ebae880a0d0f3bc58c87c8a74ef093f.tar.gz
connman-09acb9847ebae880a0d0f3bc58c87c8a74ef093f.tar.bz2
pptp: Get VPN gateway resolved IP address
We should not use the Host variable from provider as it can contain a non-resolved address. Fixes BMC#25658
Diffstat (limited to 'plugins')
-rw-r--r--plugins/pptp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/pptp.c b/plugins/pptp.c
index 365bde7..c08635c 100644
--- a/plugins/pptp.c
+++ b/plugins/pptp.c
@@ -179,7 +179,7 @@ static int pptp_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);