2021-06-20 09:18:03 -07:00
|
|
|
package vpnunlimited
|
|
|
|
|
|
|
|
|
|
import (
|
2022-01-06 06:40:23 -05:00
|
|
|
"github.com/qdm12/gluetun/internal/configuration/settings"
|
2021-06-20 09:18:03 -07:00
|
|
|
"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) (
|
2021-08-19 14:09:41 +00:00
|
|
|
connection models.Connection, err error) {
|
2024-04-30 08:04:02 +00:00
|
|
|
defaults := utils.NewConnectionDefaults(0, 1197, 0) //nolint:gomnd
|
2022-06-07 16:58:08 +00:00
|
|
|
return utils.GetConnection(p.Name(),
|
2022-09-12 21:31:37 +00:00
|
|
|
p.storage, selection, defaults, ipv6Supported, p.randSource)
|
2021-06-20 09:18:03 -07:00
|
|
|
}
|