GC before and after router configuration
Signed-off-by: Percy Wegmann <percy@tailscale.com>
This commit is contained in:
parent
f5d79963ea
commit
8a4ce40ed0
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue