streamd v0.2.2: session uptimes, egress DNS, Support, agent/Widevine
All checks were successful
release / build-and-upload (push) Successful in 7m2s

Dashboard Live uptimes + Recent runs from stream_sessions; overview.recent_sessions.
WireGuard netns resolv.conf + missing-deps WARN. Support donations card.
Agent start/stop/update, job_backoff default off, wvkey ensure/venv, phonecap retries,
modhost YAML enrich, DRM SetCredentials requires keys.
This commit is contained in:
404errordeveloper 2026-10-10 19:26:39 +02:00
parent 3ae1dd58b3
commit a091922efa
34 changed files with 2391 additions and 154 deletions

View file

@ -55,6 +55,23 @@ func New(dataDir string, store *db.Store, log *slog.Logger, socksBin string) *Ma
}
}
// WarnMissingDeps logs once when WireGuard host tools are absent. Safe to call
// on every platform; non-Linux hosts skip the check.
func (m *Manager) WarnMissingDeps() {
if runtime.GOOS != "linux" {
return
}
for _, bin := range []string{"ip", "wg"} {
if _, err := exec.LookPath(bin); err != nil {
m.logger().Warn("egress: tool missing from PATH (WireGuard profiles need it)",
"bin", bin)
}
}
if _, err := m.findSocksBin(); err != nil {
m.logger().Warn("egress: microsocks or gost missing from PATH (WireGuard profiles need a SOCKS forwarder in the netns)")
}
}
func (m *Manager) logger() *slog.Logger {
if m.Log != nil {
return m.Log