Logo
Explore Help
Register Sign In
admin/gluetun
1
0
Fork 0
You've already forked gluetun
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
c6fedd9214871424d4a05269472e96e632eaafce
gluetun/internal/provider/utils/pick.go

13 lines
263 B
Go
Raw Normal View History

Maintenance: split each provider in a package - Fix VyprVPN port - Fix missing Auth overrides
2021-05-11 17:10:51 +00:00
package utils
import (
"math/rand"
"github.com/qdm12/gluetun/internal/models"
)
Maint: make VPN connection not specific to OpenVPN - Add VPN field to ServerSelection struct - Set VPN type to server selection at start using VPN_TYPE - Change OpenVPNConnection to Connection with Type field - Rename Provider GetOpenVPNConnection to GetConnection - Rename GetTargetIPOpenVPNConnection to GetTargetIPConnection - Rename PickRandomOpenVPNConnection to PickRandomConnection - Add 'OpenVPN' prefix to OpenVPN specific methods on connection
2021-08-19 14:09:41 +00:00
func PickRandomConnection(connections []models.Connection,
source rand.Source) models.Connection {
Maintenance: split each provider in a package - Fix VyprVPN port - Fix missing Auth overrides
2021-05-11 17:10:51 +00:00
return connections[rand.New(source).Intn(len(connections))] //nolint:gosec
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 68ms Template: 6ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API