aboutsummaryrefslogtreecommitdiff
path: root/reports.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2025-08-21 01:09:31 +0700
committerShulhan <ms@kilabit.info>2025-08-21 01:09:31 +0700
commitea4ba5169e61b17d2e666ab3bae4899346ed08ac (patch)
tree37d41922e8f2e0ea3b26e49f5f4e093600483edc /reports.go
parent3f6ce287761776fd19de7793ff4dcd4bb0b6a3ba (diff)
downloadlilin-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.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/reports.go b/reports.go
index fdf472e..a635ac2 100644
--- a/reports.go
+++ b/reports.go
@@ -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)