From 75cae63d2c518dc018e839c606240f8263fe6a87 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Thu, 23 Aug 2012 14:19:36 +0300 Subject: [PATCH] l2tp: Get VPN gateway resolved IP address We should not use the Host variable from provider as it can contain a non-resolved address. --- plugins/l2tp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.7.4