summaryrefslogtreecommitdiff
path: root/src/connection.c
diff options
context:
space:
mode:
authorMohamed Abbas <mohamed.abbas@intel.com>2010-04-20 15:05:46 -0700
committerMarcel Holtmann <marcel@holtmann.org>2010-05-06 07:31:32 +0200
commitdb24367c1ea9339c2566246344bce5e50a4438f0 (patch)
tree6f7313427ad2d1f8ce7ea7a10403e93ab538813b /src/connection.c
parent2c02a01212746b9d07d3028be36c2af1ac7f27f4 (diff)
downloadconnman-db24367c1ea9339c2566246344bce5e50a4438f0.tar.gz
connman-db24367c1ea9339c2566246344bce5e50a4438f0.tar.bz2
connman-db24367c1ea9339c2566246344bce5e50a4438f0.zip
Fix issue with two default gateways when using VPN
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.
Diffstat (limited to 'src/connection.c')
-rw-r--r--src/connection.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/connection.c b/src/connection.c
index 6dfb6d92..d971cca8 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -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;
}