mirror of
https://github.com/juanfont/headscale.git
synced 2025-01-27 10:43:13 -05:00
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
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…
x
Reference in New Issue
Block a user