Fix issue with two default gateways when using VPN
authorMohamed Abbas <mohamed.abbas@intel.com>
Tue, 20 Apr 2010 22:05:46 +0000 (15:05 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 6 May 2010 05:31:32 +0000 (07:31 +0200)
This patch fixes the issue of more than one defaut gateway showing up.
This caused because VPN gatway was added but an active flag never
been set, which lead to two active gateway can be registered.

src/connection.c

index 6dfb6d928313ea9d3ab01f584b174bc7096010f8..d971cca81c0f80f7b457dfcf810f9fbbc2e5dbeb 100644 (file)
@@ -142,6 +142,7 @@ static void set_default_gateway(struct gateway_data *data)
 
        if (data->vpn == TRUE) {
                connman_inet_set_gateway_address(data->index, data->vpn_ip);
+               data->active = TRUE;
                /* vpn gateway going away no changes in services */
                return;
        }