Commit 993ba667 authored by Santtu Lakkala's avatar Santtu Lakkala

[connman] Don't add route to local VPN server. Contributes to: JB#44611

parent 8da36635
......@@ -244,6 +244,15 @@ static void set_vpn_routes(struct gateway_data *new_gateway,
if (!active_gateway->ipv4_gateway)
* If VPN server is on same subnet as we are, skip adding
* route.
if (connman_inet_compare_subnet(active_gateway->index,
DBG("active gw %s", active_gateway->ipv4_gateway->gateway);
if (g_strcmp0(active_gateway->ipv4_gateway->gateway,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment