Add processor to look up service name by port (#7540)
This commit is contained in:
12
plugins/processors/port_name/services_path.go
Normal file
12
plugins/processors/port_name/services_path.go
Normal file
@@ -0,0 +1,12 @@
|
||||
// +build windows
|
||||
|
||||
package portname
|
||||
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
func servicesPath() string {
|
||||
return filepath.Join(os.Getenv("WINDIR"), `system32\drivers\etc\services`)
|
||||
}
|
||||
Reference in New Issue
Block a user