Purevpn support (#208)

Fixes #192
This commit is contained in:
Quentin McGaw
2020-07-25 11:19:45 -04:00
committed by GitHub
parent 0811b8b099
commit 8f547500d0
14 changed files with 740 additions and 11 deletions

View File

@@ -25,11 +25,13 @@ type ServerSelection struct { //nolint:maligned
// Cyberghost
Group string `json:"group"`
// Mullvad
// Mullvad, PureVPN
Country string `json:"country"`
City string `json:"city"`
ISP string `json:"isp"`
Owned bool `json:"owned"`
// Mullvad
ISP string `json:"isp"`
Owned bool `json:"owned"`
// Mullvad, Windscribe
CustomPort uint16 `json:"customPort"`
@@ -110,6 +112,12 @@ func (p *ProviderSettings) String() string {
"Region: "+p.ServerSelection.Region,
"Number: "+number,
)
case "purevpn":
settingsList = append(settingsList,
"Region: "+p.ServerSelection.Region,
"Country: "+p.ServerSelection.Country,
"City: "+p.ServerSelection.City,
)
default:
settingsList = append(settingsList,
"<Missing String method, please implement me!>",