fix(idlewatcher): correct target URL validation logic in NewWatcher function

This commit is contained in:
yusing
2025-11-07 15:55:56 +08:00
parent d81521f293
commit 56374d595a

View File

@@ -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().