Expire the ephemeral nodes in the Serve method
This commit is contained in:
parent
9c2a630055
commit
4c849539fc
2 changed files with 2 additions and 1 deletions
1
app.go
1
app.go
|
@ -165,6 +165,7 @@ func (h *Headscale) Serve() error {
|
|||
var err error
|
||||
|
||||
go h.watchForKVUpdates(5000)
|
||||
go h.ExpireEphemeralNodes(5000)
|
||||
|
||||
if h.cfg.TLSLetsEncryptHostname != "" {
|
||||
if !strings.HasPrefix(h.cfg.ServerURL, "https://") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue