aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/manager/ipc_pipe.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-09-18 22:44:46 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2019-09-23 15:29:18 +0200
commiteb267fcc71239adadf484c4e2eb1be7bca280df7 (patch)
treed169cc8b4a0abc0cd4f4a02d63227d7564ecb312 /manager/ipc_pipe.go
parentattacksurface: update to wintun changes (diff)
downloadwireguard-windows-eb267fcc71239adadf484c4e2eb1be7bca280df7.tar.xz
wireguard-windows-eb267fcc71239adadf484c4e2eb1be7bca280df7.zip
manager: switch to vanilla gob from rpc to remove reflection bloat
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'manager/ipc_pipe.go')
-rw-r--r--manager/ipc_pipe.go22
1 files changed, 0 insertions, 22 deletions
diff --git a/manager/ipc_pipe.go b/manager/ipc_pipe.go
index 657a6275..d4214ac0 100644
--- a/manager/ipc_pipe.go
+++ b/manager/ipc_pipe.go
@@ -12,28 +12,6 @@ import (
"golang.org/x/sys/windows"
)
-type pipeRWC struct {
- reader *os.File
- writer *os.File
-}
-
-func (p *pipeRWC) Read(b []byte) (int, error) {
- return p.reader.Read(b)
-}
-
-func (p *pipeRWC) Write(b []byte) (int, error) {
- return p.writer.Write(b)
-}
-
-func (p *pipeRWC) Close() error {
- err1 := p.writer.Close()
- err2 := p.reader.Close()
- if err1 != nil {
- return err1
- }
- return err2
-}
-
func makeInheritableAndGetStr(f *os.File) (str string, err error) {
sc, err := f.SyscallConn()
if err != nil {