mirror of
https://github.com/qdm12/gluetun.git
synced 2025-12-11 04:38:54 -06:00
- `UPDATER_PROTONVPN_USERNAME` -> `UPDATER_PROTONVPN_EMAIL` - `-proton-username` -> `-proton-email` - fix authentication flow to use email or username when appropriate - fix #2985
24 lines
392 B
Go
24 lines
392 B
Go
package updater
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/qdm12/gluetun/internal/provider/common"
|
|
)
|
|
|
|
type Updater struct {
|
|
client *http.Client
|
|
email string
|
|
password string
|
|
warner common.Warner
|
|
}
|
|
|
|
func New(client *http.Client, warner common.Warner, email, password string) *Updater {
|
|
return &Updater{
|
|
client: client,
|
|
email: email,
|
|
password: password,
|
|
warner: warner,
|
|
}
|
|
}
|