Files
gluetun/internal/provider/expressvpn/updater/resolve.go
T
Quentin McGaw c5b9ee89c6 expressvpn wip
2026-08-06 03:22:06 +00:00

26 lines
488 B
Go

package updater
import (
"time"
"github.com/qdm12/gluetun/internal/updater/resolver"
)
func parallelResolverSettings(hosts []string) (settings resolver.ParallelSettings) {
const (
maxFailRatio = 0.4
maxNoNew = 1
maxFails = 4
)
return resolver.ParallelSettings{
Hosts: hosts,
MaxFailRatio: maxFailRatio,
Repeat: resolver.RepeatSettings{
MaxDuration: 5 * time.Second,
MaxNoNew: maxNoNew,
MaxFails: maxFails,
SortIPs: true,
},
}
}