projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcb5fb2
)
l2tp: Get VPN gateway resolved IP address
author
Jukka Rissanen
<jukka.rissanen@linux.intel.com>
Thu, 23 Aug 2012 11:19:36 +0000
(14:19 +0300)
committer
Patrik Flykt
<patrik.flykt@linux.intel.com>
Thu, 23 Aug 2012 12:12:05 +0000
(15:12 +0300)
We should not use the Host variable from provider as it can
contain a non-resolved address.
plugins/l2tp.c
patch
|
blob
|
history
diff --git
a/plugins/l2tp.c
b/plugins/l2tp.c
index
39c9618
..
dfb56d9
100644
(file)
--- 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, "Host
IP
");
if (value != NULL) {
connman_provider_set_string(provider, "Gateway", value);
gateway = g_strdup(value);