From: Mohamed Abbas Date: Tue, 20 Apr 2010 22:05:46 +0000 (-0700) Subject: Fix issue with two default gateways when using VPN X-Git-Tag: 0.53~48 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=db24367c1ea9339c2566246344bce5e50a4438f0;p=platform%2Fupstream%2Fconnman.git 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. --- diff --git a/src/connection.c b/src/connection.c index 6dfb6d9..d971cca 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; }