Skip to content

Commit

Permalink
Fix SIGSEGV crash related to map of state changes
Browse files Browse the repository at this point in the history
  • Loading branch information
evenh committed Jan 10, 2023
1 parent 93aca81 commit fe1141b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ func NewHeadscale(cfg *Config) (*Headscale, error) {
aclRules: tailcfg.FilterAllowAll, // default allowall
registrationCache: registrationCache,
pollNetMapStreamWG: sync.WaitGroup{},
lastStateChange: xsync.NewMapOf[time.Time](),
}

err = app.initDB()
Expand Down

0 comments on commit fe1141b

Please sign in to comment.