mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-04 02:58:19 +09: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.