mirror of
https://github.com/juanfont/headscale.git
synced 2025-01-26 02:13:12 -05:00
Expire the ephemeral nodes in the Serve method
This commit is contained in:
parent
9c2a630055
commit
4c849539fc
1
app.go
1
app.go
@ -165,6 +165,7 @@ func (h *Headscale) Serve() error {
|
|||||||
var err error
|
var err error
|
||||||
|
|
||||||
go h.watchForKVUpdates(5000)
|
go h.watchForKVUpdates(5000)
|
||||||
|
go h.ExpireEphemeralNodes(5000)
|
||||||
|
|
||||||
if h.cfg.TLSLetsEncryptHostname != "" {
|
if h.cfg.TLSLetsEncryptHostname != "" {
|
||||||
if !strings.HasPrefix(h.cfg.ServerURL, "https://") {
|
if !strings.HasPrefix(h.cfg.ServerURL, "https://") {
|
||||||
|
@ -21,7 +21,7 @@ var serveCmd = &cobra.Command{
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Error initializing: %s", err)
|
log.Fatalf("Error initializing: %s", err)
|
||||||
}
|
}
|
||||||
go h.ExpireEphemeralNodes(5000)
|
|
||||||
err = h.Serve()
|
err = h.Serve()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Error initializing: %s", err)
|
log.Fatalf("Error initializing: %s", err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user