From 56374d595a2b01909cc79466905bbfb4ec0420ce Mon Sep 17 00:00:00 2001 From: yusing Date: Fri, 7 Nov 2025 15:55:56 +0800 Subject: [PATCH] fix(idlewatcher): correct target URL validation logic in NewWatcher function --- internal/idlewatcher/watcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/idlewatcher/watcher.go b/internal/idlewatcher/watcher.go index a589cd2e..d042da61 100644 --- a/internal/idlewatcher/watcher.go +++ b/internal/idlewatcher/watcher.go @@ -263,7 +263,7 @@ func NewWatcher(parent task.Parent, r types.Route, cfg *types.IdlewatcherConfig) kind = "proxmox" } targetURL := r.TargetURL() - if targetURL != nil { + if targetURL == nil { return nil, errors.New("target URL is not set") } w.l = log.With().