chore(internal/provider/utils): unexport functions

This commit is contained in:
Quentin McGaw
2022-05-07 17:10:28 +00:00
parent 0ef7b66047
commit da8c104ebd
7 changed files with 12 additions and 35 deletions

View File

@@ -13,12 +13,12 @@ import (
var ErrNoConnectionToPickFrom = errors.New("no connection to pick from")
// PickConnection picks a connection from a pool of connections.
// pickConnection picks a connection from a pool of connections.
// If the VPN protocol is Wireguard and the target IP is set,
// it finds the connection corresponding to this target IP.
// Otherwise, it picks a random connection from the pool of connections
// and sets the target IP address as the IP if this one is set.
func PickConnection(connections []models.Connection,
func pickConnection(connections []models.Connection,
selection settings.ServerSelection, randSource rand.Source) (
connection models.Connection, err error) {
if len(connections) == 0 {