Feature: improve Cyberghost updater

- Waits up to 20s for resolutions
- Update server information and timestamp
This commit is contained in:
Quentin McGaw (desktop)
2021-06-21 20:29:55 +00:00
parent dd97ff5895
commit 3f7ccc6c49
4 changed files with 175 additions and 125 deletions

View File

@@ -13,9 +13,9 @@ func resolveHosts(ctx context.Context, presolver resolver.Parallel,
hostToIPs map[string][]net.IP, err error) {
const (
maxFailRatio = 1
maxDuration = 10 * time.Second
betweenDuration = 500 * time.Millisecond
maxNoNew = 2
maxDuration = 20 * time.Second
betweenDuration = time.Second
maxNoNew = 4
maxFails = 10
)
settings := resolver.ParallelSettings{