openvpn: Fix typo in routing prefix check
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 27 Jan 2011 13:11:18 +0000 (14:11 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 27 Jan 2011 14:32:38 +0000 (15:32 +0100)
plugins/openvpn.c

index 6083874..7973542 100644 (file)
@@ -115,7 +115,7 @@ static int ov_notify(DBusMessage *msg, struct connman_provider *provider)
                if (!strcmp(key, "ifconfig_remote"))
                        connman_provider_set_string(provider, "Peer", value);
 
-               if (g_str_has_prefix(key, "network_") == TRUE)
+               if (g_str_has_prefix(key, "route_") == TRUE)
                        connman_provider_append_route(provider, key, value);
 
                ov_append_dns_entries(key, value, &dns_entries);