From def6c987c852e934f3f7c97732baddea9144d44b Mon Sep 17 00:00:00 2001 From: Richard Acayan Date: Mon, 10 Jun 2024 23:14:09 -0400 Subject: [PATCH] wwan: enable ipv6 by default in ModemManager backend In the original addition of the ModemManager backend for mobile broadband, IPv6 was set to be disabled/ignored by default. The original motivation for this is not obvious, but it should be gone after 11 years. Some carriers have IPv6-only networks for which the default IPv4-only connection attempt is inappropriate. Enable IPv6 by default to support more WWAN networks without special configuration. Changing the default does not affect IPv4-only support thanks to fallbacks implemented in nm_modem_get_connection_ip_type(). Link: https://gitlab.com/postmarketOS/pmaports/-/issues/2752 Fixes: a9032724cb2f ('modem-manager: new `NMModemBroadband'') --- src/core/devices/wwan/nm-modem-broadband.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/devices/wwan/nm-modem-broadband.c b/src/core/devices/wwan/nm-modem-broadband.c index 298628038a..bc2fcd6a84 100644 --- a/src/core/devices/wwan/nm-modem-broadband.c +++ b/src/core/devices/wwan/nm-modem-broadband.c @@ -918,7 +918,7 @@ complete_connection(NMModem *modem, _("GSM connection"), NULL, NULL, - FALSE); /* No IPv6 yet by default */ + TRUE); return TRUE; } @@ -939,7 +939,7 @@ complete_connection(NMModem *modem, _("CDMA connection"), NULL, iface, - FALSE); /* No IPv6 yet by default */ + TRUE); return TRUE; }