mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-20 16:01:36 +02:00
fix(idlewatcher): correct target URL validation logic in NewWatcher function
This commit is contained in:
@@ -263,7 +263,7 @@ func NewWatcher(parent task.Parent, r types.Route, cfg *types.IdlewatcherConfig)
|
|||||||
kind = "proxmox"
|
kind = "proxmox"
|
||||||
}
|
}
|
||||||
targetURL := r.TargetURL()
|
targetURL := r.TargetURL()
|
||||||
if targetURL != nil {
|
if targetURL == nil {
|
||||||
return nil, errors.New("target URL is not set")
|
return nil, errors.New("target URL is not set")
|
||||||
}
|
}
|
||||||
w.l = log.With().
|
w.l = log.With().
|
||||||
|
|||||||
Reference in New Issue
Block a user