diff --git a/def/task.go b/def/task.go index 19ed98c..c7326c6 100644 --- a/def/task.go +++ b/def/task.go @@ -42,7 +42,7 @@ func (tsk *Task) UpdateHost(new_host string) bool { // Validation is_correct_host := false for _, existing_host := range constants.Hosts { - if host == existing_host { + if new_host == existing_host { is_correct_host = true } }