From 09acb9847ebae880a0d0f3bc58c87c8a74ef093f Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Thu, 23 Aug 2012 14:19:37 +0300 Subject: [PATCH] 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 --- plugins/pptp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.7.4