if restart fail then next 12s execute restart requests!
This commit is contained in:
parent
71312b164c
commit
4d50b03400
2
dip.go
2
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user