* Updater loop with period and http route * Using DNS over TLS to update servers * Better logging * Remove goroutines for cyberghost updater * Respects context for servers update (quite slow overall) * Increase shutdown grace period to 5 seconds * Update announcement * Add log lines for each provider update start
34 lines
618 B
Go
34 lines
618 B
Go
package updater
|
|
|
|
type Options struct {
|
|
Cyberghost bool
|
|
Mullvad bool
|
|
Nordvpn bool
|
|
PIA bool
|
|
PIAold bool
|
|
Purevpn bool
|
|
Surfshark bool
|
|
Vyprvpn bool
|
|
Windscribe bool
|
|
Stdout bool // in order to update constants file (maintainer side)
|
|
CLI bool
|
|
DNSAddress string
|
|
}
|
|
|
|
func NewOptions(dnsAddress string) Options {
|
|
return Options{
|
|
Cyberghost: true,
|
|
Mullvad: true,
|
|
Nordvpn: true,
|
|
PIA: true,
|
|
PIAold: true,
|
|
Purevpn: true,
|
|
Surfshark: true,
|
|
Vyprvpn: true,
|
|
Windscribe: true,
|
|
Stdout: false,
|
|
CLI: false,
|
|
DNSAddress: dnsAddress,
|
|
}
|
|
}
|