mirror of
https://github.com/tailscale/tailscale.git
synced 2026-12-06 08:32:21 -08:00
This reverts commit 0267fe83b2.
Reason: it converted the tree to Windows line endings.
Updates #14299
Change-Id: I2271a61d43e99bd0bbcf9f4831e8783e570ba08a
Signed-off-by: Brad Fitzpatrick <[email protected]>
21 lines
500 B
Go
21 lines
500 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
package wgengine
|
|
|
|
import (
|
|
"github.com/tailscale/wireguard-go/device"
|
|
)
|
|
|
|
// iOS has a very restrictive memory limit on network extensions.
|
|
// Reduce the maximum amount of memory that wireguard-go can allocate
|
|
// to avoid getting killed.
|
|
|
|
func init() {
|
|
device.QueueStagedSize = 64
|
|
device.QueueOutboundSize = 64
|
|
device.QueueInboundSize = 64
|
|
device.QueueHandshakeSize = 64
|
|
device.PreallocatedBuffersPerPool = 64
|
|
}
|