openvpn: Use ifconfig_remote as peer address
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Fri, 17 Dec 2010 14:52:04 +0000 (15:52 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 21 Dec 2010 00:35:07 +0000 (01:35 +0100)
route_vpn_gateway is not in all configuration setup
the peer address.

plugins/openvpn.c

index 7cea4e6..ac36188 100644 (file)
@@ -190,7 +190,7 @@ static int ov_notify(DBusMessage *msg, struct connman_provider *provider)
                if (!strcmp(key, "ifconfig_local"))
                        connman_provider_set_string(provider, "Address", value);
 
-               if (!strcmp(key, "route_vpn_gateway"))
+               if (!strcmp(key, "ifconfig_remote"))
                        connman_provider_set_string(provider, "Peer", value);
 
                if (g_str_has_prefix(key, "foreign_option_")) {