Expire the ephemeral nodes in the Serve method

This commit is contained in:
Juan Font committed 2021-08-12 21:44:12 +02:00
1 parent 9c2a630055
commit 4c849539fc
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -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://") {