From f16260db2570ddf074ba1f19fae6b30e0e57511f Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 17 Sep 2018 00:40:09 +0200 Subject: [PATCH] Preallocate buffers so we don't explode limit Signed-off-by: Jason A. Donenfeld --- wireguard-go-bridge/src/git.zx2c4.com/wireguard-go/api-ios.go | 1 + 1 file changed, 1 insertion(+) diff --git a/wireguard-go-bridge/src/git.zx2c4.com/wireguard-go/api-ios.go b/wireguard-go-bridge/src/git.zx2c4.com/wireguard-go/api-ios.go index dcc588f..753edf4 100644 --- a/wireguard-go-bridge/src/git.zx2c4.com/wireguard-go/api-ios.go +++ b/wireguard-go-bridge/src/git.zx2c4.com/wireguard-go/api-ios.go @@ -52,6 +52,7 @@ var tunnelHandles map[int32]*Device func init() { versionString = C.CString(WireGuardGoVersion) + preallocatedBuffers = 64 roamingDisabled = true tunnelHandles = make(map[int32]*Device) signals := make(chan os.Signal)