if restart fail then next 12s execute restart requests!

This commit is contained in:
eson 2018-12-17 03:10:42 +08:00
parent 71312b164c
commit 4d50b03400

2
dip.go
View File

@ -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