2021-09-23 07:58:13 -07:00
|
|
|
package wevpn
|
|
|
|
|
|
|
|
|
|
import (
|
2022-01-06 06:40:23 -05:00
|
|
|
"github.com/qdm12/gluetun/internal/configuration/settings"
|
2021-09-23 07:58:13 -07:00
|
|
|
"github.com/qdm12/gluetun/internal/models"
|
|
|
|
|
"github.com/qdm12/gluetun/internal/provider/utils"
|
|
|
|
|
)
|
|
|
|
|
|
2022-01-06 06:40:23 -05:00
|
|
|
func (w *Wevpn) GetConnection(selection settings.ServerSelection) (
|
2021-09-23 07:58:13 -07:00
|
|
|
connection models.Connection, err error) {
|
2022-04-19 14:28:57 +00:00
|
|
|
defaults := utils.NewConnectionDefaults(1195, 1194, 0) //nolint:gomnd
|
|
|
|
|
return utils.GetConnection(w.servers, selection, defaults, w.randSource)
|
2021-09-23 07:58:13 -07:00
|
|
|
}
|