mirror of
https://github.com/qdm12/gluetun.git
synced 2026-07-25 11:56:24 +02:00
chore(updater): move updater packages to pkg/updaters/<name>
This commit is contained in:
@@ -5,8 +5,9 @@ import (
|
||||
"slices"
|
||||
|
||||
"github.com/qdm12/gluetun/internal/configuration/settings"
|
||||
"github.com/qdm12/gluetun/internal/constants/vpn"
|
||||
"github.com/qdm12/gluetun/internal/models"
|
||||
"github.com/qdm12/gluetun/pkg/updaters/constants"
|
||||
umodels "github.com/qdm12/gluetun/pkg/updaters/models"
|
||||
)
|
||||
|
||||
type ConnectionDefaults struct {
|
||||
@@ -27,7 +28,7 @@ func NewConnectionDefaults(openvpnTCPPort, openvpnUDPPort,
|
||||
|
||||
type Storage interface {
|
||||
FilterServers(provider string, selection settings.ServerSelection) (
|
||||
servers []models.Server, err error)
|
||||
servers []umodels.Server, err error)
|
||||
}
|
||||
|
||||
func GetConnection(provider string,
|
||||
@@ -56,7 +57,7 @@ func GetConnection(provider string,
|
||||
}
|
||||
|
||||
hostname := server.Hostname
|
||||
if selection.VPN == vpn.OpenVPN && server.OvpnX509 != "" {
|
||||
if selection.VPN == constants.OpenVPN && server.OvpnX509 != "" {
|
||||
// For Windscribe where hostname and
|
||||
// OpenVPN x509 are not the same.
|
||||
hostname = server.OvpnX509
|
||||
|
||||
Reference in New Issue
Block a user