Maintenance: add revive linter
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package constants
|
||||
|
||||
const (
|
||||
// HealthcheckAddress is the default listening address for the healthcheck server.
|
||||
HealthcheckAddress = "127.0.0.1:9999"
|
||||
)
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//nolint:revive
|
||||
package constants
|
||||
|
||||
const (
|
||||
|
||||
@@ -21,10 +21,10 @@ const (
|
||||
RootHints string = "/etc/unbound/root.hints"
|
||||
// RootKey is the filepath to the root.key file used by Unbound.
|
||||
RootKey string = "/etc/unbound/root.key"
|
||||
// Client key filepath, used by Cyberghost.
|
||||
// ClientKey is the client key filepath.
|
||||
ClientKey string = "/gluetun/client.key"
|
||||
// Client certificate filepath, used by Cyberghost.
|
||||
// ClientCertificate is the client certificate filepath.
|
||||
ClientCertificate string = "/gluetun/client.crt"
|
||||
// Servers information filepath.
|
||||
// ServersData is the server information filepath.
|
||||
ServersData = "/gluetun/servers.json"
|
||||
)
|
||||
|
||||
@@ -48,6 +48,7 @@ func PrivadoHostnameChoices() (choices []string) {
|
||||
}
|
||||
|
||||
//nolint:lll
|
||||
// PrivadoServers returns a slice of all the Privado servers.
|
||||
func PrivadoServers() []models.PrivadoServer {
|
||||
return []models.PrivadoServer{
|
||||
{Country: "Argentina", Region: "Buenos Aires F.D.", City: "Buenos Aires", Hostname: "eze-001.vpn.privado.io", IP: net.IP{168, 205, 93, 211}},
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//nolint:revive
|
||||
package constants
|
||||
|
||||
import (
|
||||
|
||||
@@ -11,7 +11,7 @@ const (
|
||||
Ivpn = "ivpn"
|
||||
// Mullvad is a VPN provider.
|
||||
Mullvad = "mullvad"
|
||||
// NordVPN is a VPN provider.
|
||||
// Nordvpn is a VPN provider.
|
||||
Nordvpn = "nordvpn"
|
||||
// Privado is a VPN provider.
|
||||
Privado = "privado"
|
||||
@@ -21,7 +21,7 @@ const (
|
||||
Privatevpn = "privatevpn"
|
||||
// Protonvpn is a VPN provider.
|
||||
Protonvpn = "protonvpn"
|
||||
// PureVPN is a VPN provider.
|
||||
// Purevpn is a VPN provider.
|
||||
Purevpn = "purevpn"
|
||||
// Surfshark is a VPN provider.
|
||||
Surfshark = "surfshark"
|
||||
|
||||
@@ -21,6 +21,7 @@ func VyprvpnRegionChoices() (choices []string) {
|
||||
}
|
||||
|
||||
//nolint:lll
|
||||
// VyprvpnServers returns a slice of all the VyprVPN servers.
|
||||
func VyprvpnServers() []models.VyprvpnServer {
|
||||
return []models.VyprvpnServer{
|
||||
{Region: "Algeria", Hostname: "dz1.vyprvpn.com", TCP: false, UDP: true, IPs: []net.IP{{209, 99, 75, 20}}},
|
||||
|
||||
@@ -40,6 +40,7 @@ func WindscribeHostnameChoices() (choices []string) {
|
||||
}
|
||||
|
||||
//nolint:lll
|
||||
// WindscribeServers returns a slice of all the Windscribe servers.
|
||||
func WindscribeServers() []models.WindscribeServer {
|
||||
return []models.WindscribeServer{
|
||||
{Region: "Albania", City: "Tirana", Hostname: "al-002.whiskergalaxy.com", IPs: []net.IP{{31, 171, 152, 178}, {31, 171, 152, 179}, {31, 171, 152, 180}}},
|
||||
|
||||
Reference in New Issue
Block a user