mirror of
https://github.com/qtgolang/SunnyNet.git
synced 2026-08-30 22:11:29 -07:00
17 lines
288 B
Go
17 lines
288 B
Go
//go:build windows
|
|
// +build windows
|
|
|
|
package WinDivert
|
|
|
|
func (d *Divert) pidFromCheck(pid int32, name string) (ok bool) {
|
|
if _myPid == pid {
|
|
return true
|
|
}
|
|
sessionsMu.Lock()
|
|
defer sessionsMu.Unlock()
|
|
if d.checkProcess == nil {
|
|
return false
|
|
}
|
|
return d.checkProcess(pid, name)
|
|
}
|