Preallocate buffers so we don't explode limit
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
b5783d7d21
commit
f16260db25
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue