version 2 chatgpt

This commit is contained in:
2025-09-07 08:18:31 +02:00
parent 0a79e491f3
commit 79b1db5180
2 changed files with 58 additions and 9 deletions

View File

@@ -78,8 +78,6 @@ func (s *Server) Start() error {
s.mu.RLock()
pmolog.LoggerWeb(mux)
mux.HandleFunc("/", s.ServeDebugIndex)
s.httpSrv = &http.Server{
@@ -125,6 +123,8 @@ func (s *Server) Run(ctx context.Context) error {
return fmt.Errorf("❌ failed to start server: %w", err)
}
pmolog.LoggerWeb(ctx, s.httpSrv.Handler.(*http.ServeMux))
s.sspd = ssdp.NewSSDPServer()
if err := s.sspd.Start(ctx); err != nil {
return fmt.Errorf("❌ failed to start SSDP server: %w", err)