fix(privatevpn): updater now scraps webpage instead of very outdated zip file

This commit is contained in:
Quentin McGaw
2026-08-05 17:16:57 +00:00
parent 3c4d5f1a04
commit 7ca92b5099
10 changed files with 492 additions and 193 deletions
@@ -1,20 +1,22 @@
package updater
import (
"net/http"
"github.com/qdm12/gluetun/internal/provider/common"
)
type Updater struct {
unzipper common.Unzipper
client *http.Client
parallelResolver common.ParallelResolver
warner common.Warner
}
func New(unzipper common.Unzipper, warner common.Warner,
func New(client *http.Client, warner common.Warner,
parallelResolver common.ParallelResolver,
) *Updater {
return &Updater{
unzipper: unzipper,
client: client,
parallelResolver: parallelResolver,
warner: warner,
}