Fix GetListNetworkServices

pull/6443/head
2dust 2025-01-05 12:24:14 +08:00
parent 4a7bafd011
commit aae5906311
1 changed files with 3 additions and 2 deletions

View File

@ -93,8 +93,9 @@
{
return LstInterface;
}
var lst = services.Split(Environment.NewLine);
return lst.Length > 0 ? LstInterface.Intersect(lst).ToList() : LstInterface;
var lst = services.Split(Environment.NewLine).Where(t => t.Length > 0 && t.Contains('*') == false);
return lst.ToList();
}
}
}