14 lines
450 B
Go
14 lines
450 B
Go
package cyberghost
|
|
|
|
import (
|
|
"github.com/qdm12/gluetun/internal/configuration/settings"
|
|
"github.com/qdm12/gluetun/internal/models"
|
|
"github.com/qdm12/gluetun/internal/provider/utils"
|
|
)
|
|
|
|
func (c *Cyberghost) GetConnection(selection settings.ServerSelection) (
|
|
connection models.Connection, err error) {
|
|
defaults := utils.NewConnectionDefaults(443, 443, 0) //nolint:gomnd
|
|
return utils.GetConnection(c.servers, selection, defaults, c.randSource)
|
|
}
|