Re: [PATCH] editor: default to IPv6 Auto for manually created connections too



On Mon, 2011-07-18 at 15:22 -0400, Mathieu Trudel-Lapierre wrote:
> New connections created by hand by a user (e.g. with the connection
> editor's Add button) should have IPv6 set to Automatic by default.

Pushed, thanks.

Dan

> ---
>  src/connection-editor/page-ip6.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/src/connection-editor/page-ip6.c b/src/connection-editor/page-ip6.c
> index 70c6f09..0d6831a 100644
> --- a/src/connection-editor/page-ip6.c
> +++ b/src/connection-editor/page-ip6.c
> @@ -331,7 +331,7 @@ populate_ui (CEPageIP6 *self)
>  	NMSettingIP6Config *setting = priv->setting;
>  	GtkListStore *store;
>  	GtkTreeIter model_iter;
> -	int method = IP6_METHOD_IGNORE;
> +	int method = IP6_METHOD_AUTO;
>  	GString *string = NULL;
>  	SetMethodInfo info;
>  	const char *str_method;
> @@ -341,6 +341,8 @@ populate_ui (CEPageIP6 *self)
>  	gtk_combo_box_set_active (priv->method, 0);
>  	str_method = nm_setting_ip6_config_get_method (setting);
>  	if (str_method) {
> +		if (!strcmp (str_method, NM_SETTING_IP6_CONFIG_METHOD_IGNORE))
> +			method = IP6_METHOD_IGNORE;
>  		if (!strcmp (str_method, NM_SETTING_IP6_CONFIG_METHOD_AUTO))
>  			method = IP6_METHOD_AUTO;
>  		if (!strcmp (str_method, NM_SETTING_IP6_CONFIG_METHOD_DHCP))




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]