Fix SIGSEGV crash related to map of state changes
See https://github.com/juanfont/headscale/issues/1114#issuecomment-1373698441
This commit is contained in:
parent
93aca81c1c
commit
26282b7a54
1 changed files with 1 additions and 0 deletions
1
app.go
1
app.go
|
@ -162,6 +162,7 @@ func NewHeadscale(cfg *Config) (*Headscale, error) {
|
||||||
aclRules: tailcfg.FilterAllowAll, // default allowall
|
aclRules: tailcfg.FilterAllowAll, // default allowall
|
||||||
registrationCache: registrationCache,
|
registrationCache: registrationCache,
|
||||||
pollNetMapStreamWG: sync.WaitGroup{},
|
pollNetMapStreamWG: sync.WaitGroup{},
|
||||||
|
lastStateChange: xsync.NewMapOf[time.Time](),
|
||||||
}
|
}
|
||||||
|
|
||||||
err = app.initDB()
|
err = app.initDB()
|
||||||
|
|
Loading…
Reference in a new issue