mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-22 08:51:41 +00:00
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())
|
oneCGNATRoute := shouldUseOneCGNATRoute(b.logf, b.sys.ControlKnobs(), version.OS())
|
||||||
|
runtime.GC()
|
||||||
rcfg := b.routerConfig(cfg, prefs, oneCGNATRoute)
|
rcfg := b.routerConfig(cfg, prefs, oneCGNATRoute)
|
||||||
|
runtime.GC()
|
||||||
|
|
||||||
err = b.e.Reconfig(cfg, rcfg, dcfg)
|
err = b.e.Reconfig(cfg, rcfg, dcfg)
|
||||||
if err == wgengine.ErrNoChanges {
|
if err == wgengine.ErrNoChanges {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user