aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/manager/service.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/service.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 '')
-rw-r--r--manager/service.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/manager/service.go b/manager/service.go
index 47ba51bc..e493e7cb 100644
--- a/manager/service.go
+++ b/manager/service.go
@@ -167,15 +167,15 @@ func (service *managerService) Execute(args []string, r <-chan svc.ChangeRequest
runtime.LockOSThread()
ourReader, theirReader, theirReaderStr, ourWriter, theirWriter, theirWriterStr, err := inheritableSocketpairEmulation()
if err != nil {
- log.Printf("Unable to create two inheritable pipes: %v", err)
+ log.Printf("Unable to create two inheritable RPC pipes: %v", err)
return
}
ourEvents, theirEvents, theirEventStr, err := inheritableEvents()
- err = IPCServerListen(ourReader, ourWriter, ourEvents, elevatedToken)
if err != nil {
- log.Printf("Unable to listen on IPC pipes: %v", err)
+ log.Printf("Unable to create one inheritable events pipe: %v", err)
return
}
+ IPCServerListen(ourReader, ourWriter, ourEvents, elevatedToken)
theirLogMapping, theirLogMappingHandle, err := ringlogger.Global.ExportInheritableMappingHandleStr()
if err != nil {
log.Printf("Unable to export inheritable mapping handle for logging: %v", err)