From ae2f88a9ee4b96a603df8a050f5a61ac74aa0f90 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 14 Feb 2019 11:17:03 +0100 Subject: tools: bump upstream version This now includes the latest ARM64 ChaCha20 implementation, which should improve performance. Signed-off-by: Jason A. Donenfeld --- app/tools/libwg-go/src/api-android.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'app/tools/libwg-go/src/api-android.go') diff --git a/app/tools/libwg-go/src/api-android.go b/app/tools/libwg-go/src/api-android.go index ae4bacae..2c28fc76 100644 --- a/app/tools/libwg-go/src/api-android.go +++ b/app/tools/libwg-go/src/api-android.go @@ -13,7 +13,6 @@ import ( "bufio" "git.zx2c4.com/wireguard-go/tun" "golang.org/x/sys/unix" - "io/ioutil" "log" "math" "net" @@ -83,8 +82,7 @@ func wgTurnOn(ifnameRef string, tunFd int32, settings string) int32 { logger.Debug.Println("Interface has MTU", device.tun.mtu) - bufferedSettings := bufio.NewReadWriter(bufio.NewReader(strings.NewReader(settings)), bufio.NewWriter(ioutil.Discard)) - setError := ipcSetOperation(device, bufferedSettings) + setError := ipcSetOperation(device, bufio.NewReader(strings.NewReader(settings))) if setError != nil { unix.Close(int(tunFd)) logger.Error.Println(setError) -- cgit v1.2.3