diff options
| author | Shulhan <ms@kilabit.info> | 2025-08-21 01:09:31 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2025-08-21 01:09:31 +0700 |
| commit | ea4ba5169e61b17d2e666ab3bae4899346ed08ac (patch) | |
| tree | 37d41922e8f2e0ea3b26e49f5f4e093600483edc /reports.go | |
| parent | 3f6ce287761776fd19de7793ff4dcd4bb0b6a3ba (diff) | |
| download | lilin-ea4ba5169e61b17d2e666ab3bae4899346ed08ac.tar.xz | |
all: store the service file name as service ID
Instead of using name, which may contains space, use the
file name as service ID.
In this way, the log file name will match with the service
file name.
Diffstat (limited to 'reports.go')
| -rw-r--r-- | reports.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -19,7 +19,7 @@ type Reports struct { // Store the service scan report. func (reports *Reports) Store(scanReport ScanReport) { reports.Lock() - var svcReport = reports.Services[scanReport.Name] + var svcReport = reports.Services[scanReport.ID] svcReport.Store(scanReport) if !scanReport.Success { reports.Fail = append(reports.Fail, scanReport) |
