aboutsummaryrefslogtreecommitdiffstats
path: root/wireguard-go-bridge
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-09-17 00:40:09 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-09-17 00:40:09 +0200
commitf16260db2570ddf074ba1f19fae6b30e0e57511f (patch)
treea52363f2cffa100c30458539fd3a40e256e25af1 /wireguard-go-bridge
parentSmall comment layout tweak. (diff)
downloadwireguard-apple-f16260db2570ddf074ba1f19fae6b30e0e57511f.tar.xz
wireguard-apple-f16260db2570ddf074ba1f19fae6b30e0e57511f.zip
Preallocate buffers so we don't explode limit
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'wireguard-go-bridge')
-rw-r--r--wireguard-go-bridge/src/git.zx2c4.com/wireguard-go/api-ios.go1
1 files changed, 1 insertions, 0 deletions
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 dcc588fd..753edf49 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)