This commit is contained in:
Zetao Zhuang 2024-11-19 12:04:51 -08:00
Родитель 90301c25df
Коммит a1d5a079c2
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -44,10 +44,12 @@ type AzResponse struct {
func (az AzResponse) Valid() bool {
// 0 should be valid when NMA version is old and does not have the apiVersion value in home az response
//nolint:gomnd // these magic numbers are made by nma design
return az.APIVersion == 0 || az.APIVersion == 2
}
func (az AzResponse) NmaAppliedTheIPV6Fix() bool {
//nolint:gomnd // this magic number is made by nma design
return az.APIVersion == 2
}