diff --git a/ipn/ipnlocal/local.go b/ipn/ipnlocal/local.go index 25f4d552f..e09061041 100644 --- a/ipn/ipnlocal/local.go +++ b/ipn/ipnlocal/local.go @@ -1438,6 +1438,10 @@ func (b *LocalBackend) peerCapsLocked(src netip.Addr) tailcfg.PeerCapMap { return nil } +func (b *LocalBackend) GetFilterForTest() *filter.Filter { + return b.filterAtomic.Load() +} + // SetControlClientStatus is the callback invoked by the control client whenever it posts a new status. // Among other things, this is where we update the netmap, packet filters, DNS and DERP maps. func (b *LocalBackend) SetControlClientStatus(c controlclient.Client, st controlclient.Status) {