connman: fix wireguard routes

This commit is contained in:
mglae 2024-10-07 18:56:27 +02:00
parent 52f8237334
commit 4dbb5fe775

View File

@ -0,0 +1,30 @@
From b1ed80a459ec31ae217897b7a3347d123e08d379 Mon Sep 17 00:00:00 2001
From: mglae <mglmail@arcor.de>
Date: Sat, 14 Sep 2024 19:46:08 +0200
Subject: __connman_gateway_add(): fix calculation of is_vpn6
Fix commit 823d5a2 "connection: Refactor '__connman_connection_gateway_add'"
---
src/gateway.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/gateway.c b/src/gateway.c
index 16c87f83..b2c211e2 100644
--- a/src/gateway.c
+++ b/src/gateway.c
@@ -3704,10 +3704,10 @@ int __connman_gateway_add(struct connman_service *service,
is_gateway_config_vpn(
new_gateway->ipv4_config);
- is_vpn6 = do_ipv4 &&
- new_gateway->ipv4_config &&
+ is_vpn6 = do_ipv6 &&
+ new_gateway->ipv6_config &&
is_gateway_config_vpn(
- new_gateway->ipv4_config);
+ new_gateway->ipv6_config);
} else {
if (do_ipv4 && new_gateway->ipv4_config)
--
2.40.0