@@ -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!>",
|
||||
|
||||
Reference in New Issue
Block a user