2022-08-15 16:25:06 +01:00
|
|
|
package slickvpn
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/qdm12/gluetun/internal/configuration/settings"
|
|
|
|
|
"github.com/qdm12/gluetun/internal/models"
|
|
|
|
|
"github.com/qdm12/gluetun/internal/provider/utils"
|
|
|
|
|
)
|
|
|
|
|
|
2022-09-12 21:31:37 +00:00
|
|
|
func (p *Provider) GetConnection(selection settings.ServerSelection, ipv6Supported bool) (
|
2022-08-15 16:25:06 +01:00
|
|
|
connection models.Connection, err error) {
|
2023-03-25 12:23:32 +00:00
|
|
|
defaults := utils.NewConnectionDefaults(443, 443, 0) //nolint:gomnd
|
2022-09-12 21:31:37 +00:00
|
|
|
return utils.GetConnection(p.Name(), p.storage, selection, defaults, ipv6Supported, p.randSource)
|
2022-08-15 16:25:06 +01:00
|
|
|
}
|