mirror of
https://github.com/tailscale/tailscale.git
synced 2026-09-16 07:52:22 -04:00
Plumb a WGDeviceOptions field from tsnet.Server and wgengine.Config through to wireguard-go's NewDevice. This lets callers running many tsnet.Server instances in one process share a single set of buffer pools (via device.OptionPools) instead of each Device retaining its own, which otherwise dominates the heap at scale. Both fields are optional; unset behavior is unchanged.