From 4d50b034006d905dd0d1571c551d28de1ce337f1 Mon Sep 17 00:00:00 2001 From: eson <474420502@qq.com> Date: Mon, 17 Dec 2018 03:10:42 +0800 Subject: [PATCH] if restart fail then next 12s execute restart requests! --- dip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dip.go b/dip.go index eaac63f..63ad582 100644 --- a/dip.go +++ b/dip.go @@ -72,7 +72,7 @@ func (group *DIPGroup) Choose(addr string) { restartAddr := "http://" + group.Current.Host + ":8800/pppoe/restart" if _, err := requests.NewSession().Get(restartAddr).Execute(); err != nil { log.Println(err) - // group.Current.ActiveTime += 12 + group.Current.ActiveTime += 12 } else { group.Current = dhost group.Current.ActiveTime = now