mirror of
https://github.com/safing/portmaster
synced 2025-09-01 10:09:11 +00:00
Fix parsing tagged windows service names
This commit is contained in:
parent
fce1a7ac33
commit
0670956bbd
1 changed files with 3 additions and 0 deletions
|
@ -62,6 +62,9 @@ func (h *SVCHostTagHandler) AddTags(p *process.Process) {
|
|||
p.Name += fmt.Sprintf(" (%s)", strings.Join(svcNames, ", "))
|
||||
// Add services as tags.
|
||||
for _, svcName := range svcNames {
|
||||
// Remove tags from service names, such as "CDPUserSvc_1bf5729".
|
||||
svcName, _, _ := strings.Cut(svcName, "_")
|
||||
// Add service as tag.
|
||||
p.Tags = append(p.Tags, profile.Tag{
|
||||
Key: svchostTagKey,
|
||||
Value: svcName,
|
||||
|
|
Loading…
Add table
Reference in a new issue