fix(scanner/windows): support installationType Domain Controller (#1627)

This commit is contained in:
MaineK00n
2023-03-28 21:04:17 +09:00
committed by GitHub
parent de1ed8ecaa
commit 8ccaa8c3ef
3 changed files with 145 additions and 9 deletions

View File

@@ -170,6 +170,7 @@ func ViaHTTP(header http.Header, body string, toLocalFile bool) (models.ScanResu
release := header.Get("X-Vuls-OS-Release")
if release == "" {
logging.Log.Debugf("osInfo(systeminfo.exe): %+v", osInfo)
release, err = detectOSName(osInfo)
if err != nil {
return models.ScanResult{}, xerrors.Errorf("Failed to detect os name. err: %w", err)