2022-08-15 19:54:58 -04:00
|
|
|
package vpnsecure
|
|
|
|
|
|
|
|
|
|
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 19:54:58 -04:00
|
|
|
connection models.Connection, err error) {
|
|
|
|
|
defaults := utils.NewConnectionDefaults(110, 1282, 0) //nolint:gomnd
|
|
|
|
|
return utils.GetConnection(p.Name(),
|
2022-09-12 21:31:37 +00:00
|
|
|
p.storage, selection, defaults, ipv6Supported, p.randSource)
|
2022-08-15 19:54:58 -04:00
|
|
|
}
|