MCPcopy
hub / github.com/passteque/gluetun / GetConnection

Method GetConnection

internal/provider/provider.go:12–12  ·  view source on GitHub ↗
(selection settings.ServerSelection, ipv6Supported bool)

Source from the content-addressed store, hash-verified

10// Provider contains methods to read and modify the openvpn configuration to connect as a client.
11type Provider interface {
12 GetConnection(selection settings.ServerSelection, ipv6Supported bool) (connection models.Connection, err error)
13 OpenVPNConfig(connection models.Connection, settings settings.OpenVPN, ipv6Supported bool) (lines []string)
14 Name() string
15 FetchServers(ctx context.Context, minServers int) (

Callers 7

setupWireguardFunction · 0.65
setupOpenVPNFunction · 0.65
OpenvpnConfigMethod · 0.65

Calls

no outgoing calls

Tested by 4