aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tunnel
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-12-22 14:33:37 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-01-24 00:13:52 +0100
commitc0112beef7ca28266f60e986d2bb1bcb96ae82e4 (patch)
treec8b11ff2e991834ee4195555c138f636b8e26093 /tunnel
parentglobal: move certain win32 APIs to x/sys/windows (diff)
downloadwireguard-windows-c0112beef7ca28266f60e986d2bb1bcb96ae82e4.tar.xz
wireguard-windows-c0112beef7ca28266f60e986d2bb1bcb96ae82e4.zip
mod: bump
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--tunnel/service.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/tunnel/service.go b/tunnel/service.go
index 8817751b..cb577358 100644
--- a/tunnel/service.go
+++ b/tunnel/service.go
@@ -6,7 +6,6 @@
package tunnel
import (
- "bufio"
"bytes"
"fmt"
"log"
@@ -208,9 +207,8 @@ func (service *tunnelService) Execute(args []string, r <-chan svc.ChangeRequest,
serviceError = services.ErrorUAPIListen
return
}
- ipcErr := dev.IpcSetOperation(bufio.NewReader(strings.NewReader(uapiConf)))
- if ipcErr != nil {
- err = ipcErr
+ err = dev.IpcSet(uapiConf)
+ if err != nil {
serviceError = services.ErrorDeviceSetConfig
return
}