Apply patch

This commit is contained in:
2026-02-09 22:38:30 -05:00
parent 75610162e7
commit 99e90c1cba
+12
View File
@@ -123,6 +123,18 @@ type win32MessageBytePipe struct {
type pipeAddress string
// GetPipeHandle returns the underlying handle of a pipe.
func GetPipeHandle(f net.Conn) windows.Handle {
switch v := f.(type) {
case *win32MessageBytePipe:
return v.handle
case *win32Pipe:
return v.handle
default:
return 0
}
}
func (f *win32Pipe) LocalAddr() net.Addr {
return pipeAddress(f.path)
}