diff --git a/dip.go b/dip.go index bea3ce2..f75d4b8 100644 --- a/dip.go +++ b/dip.go @@ -77,6 +77,7 @@ func (group *DIPGroup) Choose(addr string) { if _, err := requests.NewSession().Get(restartAddr).Execute(); err != nil { log.Println(err) group.Current.ActiveTime += 12 + return } else { group.Current = dhost group.Current.ActiveTime = now @@ -88,7 +89,7 @@ func (group *DIPGroup) Choose(addr string) { group.Waitor[ip] = group.Ready[ip] delete(group.Ready, ip) - break + return } }