diff options
author | Dan Williams <dcbw@redhat.com> | 2015-06-29 10:49:23 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2015-06-30 09:27:47 -0500 |
commit | 1c7c091156a410ad30f4b655048c0f2c93544ff5 (patch) | |
tree | 40349a2fabf7b339335ee938809d73acce1ca469 | |
parent | 8a4ed5ab24498491640280cd4cf0ea07bd8637b9 (diff) | |
download | network-manager-applet-dcbw/wwan-ipv6-default.tar.gz |
applet: default to ipv6.method=auto for WWAN connectionsdcbw/wwan-ipv6-default
NM has fallback logic to ensure that even if IPv6 gets tried and fails,
that IPv4 gets used instead. So it should be safe to default to
automatic IPv6 support for new WWAN connections now, and bugs should
get fixed instead of papered over.
-rw-r--r-- | src/mobile-helpers.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mobile-helpers.c b/src/mobile-helpers.c index fc725b9c..6166e812 100644 --- a/src/mobile-helpers.c +++ b/src/mobile-helpers.c @@ -193,6 +193,15 @@ mobile_wizard_done (NMAMobileWizard *wizard, } else g_assert_not_reached (); + /* Default to IPv4 & IPv6 'automatic' addressing */ + setting = nm_setting_ip4_config_new (); + g_object_set (setting, NM_SETTING_IP_CONFIG_METHOD, NM_SETTING_IP4_CONFIG_METHOD_AUTO, NULL); + nm_connection_add_setting (connection, setting); + + setting = nm_setting_ip6_config_new (); + g_object_set (setting, NM_SETTING_IP_CONFIG_METHOD, NM_SETTING_IP6_CONFIG_METHOD_AUTO, NULL); + nm_connection_add_setting (connection, setting); + nm_connection_add_setting (connection, nm_setting_ppp_new ()); setting = nm_setting_connection_new (); |