Merge branch 'feature/ephemeral-expose'

This commit is contained in:
Veillax committed 2026-10-27 17:09:19 -06:00
commit a9a0372d25
7 files changed
+705

No files matched your search

+4
View File
@@ -219,6 +219,8 @@ type Server struct {
verAt time.Time
mtaSent map[string]time.Time // reminder throttle for repeat notifications
expose map[string]time.Time // deadline of each ephemeral mapping, by ID (see expose.go)
logs *logStore
db *DB
stop chan struct{}
@@ -260,6 +262,7 @@ func New(dir string, opts Options) (*Server, error) {
alerts: map[string]*alertState{},
mtaSent: map[string]time.Time{},
updRuns: map[string]*updRun{},
expose: map[string]time.Time{},
}
s.st.Sessions = map[string]*Session{}
s.st.Secrets = map[string]*Secret{}
@@ -300,6 +303,7 @@ func New(dir string, opts Options) (*Server, error) {
}
s.loadAlerts()
go s.housekeeping()
go s.exposeLoop()
go s.alertLoop()
return s, nil
}