telegraf/plugins/processors/port_name/services_path.go

13 lines
179 B
Go

// +build windows
package portname
import (
"os"
"path/filepath"
)
func servicesPath() string {
return filepath.Join(os.Getenv("WINDIR"), `system32\drivers\etc\services`)
}