Skip to content

Commit 630d6f8

Browse files
committed
retry timers for buteforce ssh failed connections 2
1 parent f548cc4 commit 630d6f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ func (t *RetryTimer) TryLater(client string) {
7676
}
7777
if(counter < MAX_RETRY) {
7878
counter = counter<<1
79+
t.set(client, now, counter)
7980
}
8081
// increase counter by max a day
81-
t.set(client, now, counter)
8282
log.Printf("Pls retry client: %s after %d seconds.\n", client, counter)
8383
}
8484

0 commit comments

Comments
 (0)