Projet

Général

Profil

« Précédent | Suivant » 

Révision a1b5f07b

Ajouté par Ermal il y a plus de 9 ans

Fixes #3664, actually make sense of this function to work properly

Voir les différences:

etc/inc/interfaces.inc
4142 4142
		break;
4143 4143
	case "enc0":
4144 4144
	case "ipsec":
4145
	case "IPsec":
4145 4146
		$ifdesc = "IPsec";
4146 4147
		break;
4147 4148
	default:
......
4175 4176
}
4176 4177

  
4177 4178
function convert_real_interface_to_friendly_descr($interface) {
4178
	global $config;
4179 4179

  
4180 4180
	$ifdesc = convert_real_interface_to_friendly_interface_name("{$interface}");
4181 4181

  
4182
	if ($ifdesc) {
4183
		$iflist = get_configured_interface_with_descr(false, true);
4184
		return $iflist[$ifdesc];
4185
	}
4182
	if (!empty($ifdesc))
4183
		return convert_friendly_interface_to_friendly_descr($ifdesc);
4186 4184

  
4187 4185
	return $interface;
4188 4186
}

Formats disponibles : Unified diff