2022-10-17 02:54:56 -04:00
|
|
|
package airvpn
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/qdm12/gluetun/internal/configuration/settings"
|
|
|
|
|
"github.com/qdm12/gluetun/internal/models"
|
|
|
|
|
"github.com/qdm12/gluetun/internal/provider/utils"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func (p *Provider) GetConnection(selection settings.ServerSelection, ipv6Supported bool) (
|
2024-10-11 19:20:48 +00:00
|
|
|
connection models.Connection, err error,
|
|
|
|
|
) {
|
2024-10-11 18:05:40 +00:00
|
|
|
defaults := utils.NewConnectionDefaults(443, 1194, 1637) //nolint:mnd
|
2022-10-17 02:54:56 -04:00
|
|
|
return utils.GetConnection(p.Name(),
|
|
|
|
|
p.storage, selection, defaults, ipv6Supported, p.randSource)
|
|
|
|
|
}
|