feat(vpn): rotate filtered servers on internal vpn restarts

- Fix #290
This commit is contained in:
Quentin McGaw
2026-05-04 03:28:48 +00:00
parent 4b819b4dbb
commit fed09562e5
57 changed files with 345 additions and 220 deletions
+4 -6
View File
@@ -1,25 +1,23 @@
package perfectprivacy
import (
"math/rand"
"github.com/qdm12/gluetun/internal/constants/providers"
"github.com/qdm12/gluetun/internal/provider/common"
"github.com/qdm12/gluetun/internal/provider/perfectprivacy/updater"
"github.com/qdm12/gluetun/internal/provider/utils"
)
type Provider struct {
storage common.Storage
randSource rand.Source
connPicker *utils.ConnectionPicker
common.Fetcher
}
func New(storage common.Storage, randSource rand.Source,
unzipper common.Unzipper, updaterWarner common.Warner,
func New(storage common.Storage, unzipper common.Unzipper, updaterWarner common.Warner,
) *Provider {
return &Provider{
storage: storage,
randSource: randSource,
connPicker: utils.NewConnectionPicker(),
Fetcher: updater.New(unzipper, updaterWarner),
}
}