Add processor to look up service name by port (#7540)

This commit is contained in:
reimda
2020-05-27 15:42:59 -06:00
committed by GitHub
parent a438678d5b
commit 71b0b96241
7 changed files with 482 additions and 0 deletions

View 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`)
}