Update ctr so it works again on windows
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
13
cmd/ctr/pprof_unix.go
Normal file
13
cmd/ctr/pprof_unix.go
Normal file
@@ -0,0 +1,13 @@
|
||||
// +build !windows
|
||||
|
||||
package main
|
||||
|
||||
import "net"
|
||||
|
||||
func (d *pprofDialer) pprofDial(proto, addr string) (conn net.Conn, err error) {
|
||||
return net.Dial(d.proto, d.addr)
|
||||
}
|
||||
|
||||
func getPProfDialer(addr string) *pprofDialer {
|
||||
return &pprofDialer{"unix", addr}
|
||||
}
|
Reference in New Issue
Block a user