GC before and after router configuration

Signed-off-by: Percy Wegmann <percy@tailscale.com>
This commit is contained in:
Percy Wegmann 2024-03-21 12:13:07 -05:00
parent f5d79963ea
commit 8a4ce40ed0
No known key found for this signature in database
GPG Key ID: 29D8CDEB4C13D48B
1 changed files with 2 additions and 0 deletions

View File

@ -3615,7 +3615,9 @@ func (b *LocalBackend) authReconfig() {
}
oneCGNATRoute := shouldUseOneCGNATRoute(b.logf, b.sys.ControlKnobs(), version.OS())
runtime.GC()
rcfg := b.routerConfig(cfg, prefs, oneCGNATRoute)
runtime.GC()
err = b.e.Reconfig(cfg, rcfg, dcfg)
if err == wgengine.ErrNoChanges {