From e0bb0d3e23fad27078bc670afab68536d8c197a1 Mon Sep 17 00:00:00 2001 From: mglae Date: Tue, 17 Sep 2024 09:23:25 +0000 Subject: [PATCH] connman: fix wireguard routes --- ...teway_add-fix-calculation-of-is_vpn6.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 packages/network/connman/patches/connman-07-connman_gateway_add-fix-calculation-of-is_vpn6.patch diff --git a/packages/network/connman/patches/connman-07-connman_gateway_add-fix-calculation-of-is_vpn6.patch b/packages/network/connman/patches/connman-07-connman_gateway_add-fix-calculation-of-is_vpn6.patch new file mode 100644 index 0000000000..c4274269ed --- /dev/null +++ b/packages/network/connman/patches/connman-07-connman_gateway_add-fix-calculation-of-is_vpn6.patch @@ -0,0 +1,30 @@ +From b1ed80a459ec31ae217897b7a3347d123e08d379 Mon Sep 17 00:00:00 2001 +From: mglae +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