hotfix(surfshark): REGION retro-compatibility

This commit is contained in:
Quentin McGaw
2022-01-06 19:16:14 +00:00
parent 2c8a8f6cd5
commit ae074dfb2b
3 changed files with 8 additions and 4 deletions

View File

@@ -21,7 +21,8 @@ type Provider struct {
PortForwarding PortForwarding
}
func (p Provider) validate(vpnType string, allServers models.AllServers) (err error) {
// TODO v4 remove pointer for receiver (because of Surfshark).
func (p *Provider) validate(vpnType string, allServers models.AllServers) (err error) {
// Validate Name
var validNames []string
if vpnType == constants.OpenVPN {