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

@@ -35,13 +35,13 @@ func GetConnection(servers []models.Server,
return connection, ErrNoServer
}
servers = FilterServers(servers, selection)
servers = filterServers(servers, selection)
if len(servers) == 0 {
return connection, NoServerFoundError(selection)
return connection, noServerFoundError(selection)
}
protocol := getProtocol(selection)
port := GetPort(selection, defaults.OpenVPNTCPPort,
port := getPort(selection, defaults.OpenVPNTCPPort,
defaults.OpenVPNUDPPort, defaults.WireguardPort)
connections := make([]models.Connection, 0, len(servers))
@@ -71,5 +71,5 @@ func GetConnection(servers []models.Server,
}
}
return PickConnection(connections, selection, randSource)
return pickConnection(connections, selection, randSource)
}