tools: bump upstream version

This now includes the latest ARM64 ChaCha20 implementation, which should
improve performance.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld
2019-02-14 11:59:10 +01:00
parent 32287c60c4
commit ae2f88a9ee
3 changed files with 3 additions and 5 deletions
+1 -3
View File
@@ -13,7 +13,6 @@ import (
"bufio" "bufio"
"git.zx2c4.com/wireguard-go/tun" "git.zx2c4.com/wireguard-go/tun"
"golang.org/x/sys/unix" "golang.org/x/sys/unix"
"io/ioutil"
"log" "log"
"math" "math"
"net" "net"
@@ -83,8 +82,7 @@ func wgTurnOn(ifnameRef string, tunFd int32, settings string) int32 {
logger.Debug.Println("Interface has MTU", device.tun.mtu) logger.Debug.Println("Interface has MTU", device.tun.mtu)
bufferedSettings := bufio.NewReadWriter(bufio.NewReader(strings.NewReader(settings)), bufio.NewWriter(ioutil.Discard)) setError := ipcSetOperation(device, bufio.NewReader(strings.NewReader(settings)))
setError := ipcSetOperation(device, bufferedSettings)
if setError != nil { if setError != nil {
unix.Close(int(tunFd)) unix.Close(int(tunFd))
logger.Error.Println(setError) logger.Error.Println(setError)