Feature: Private Internet Access custom port

This commit is contained in:
Quentin McGaw
2021-01-31 01:27:13 +00:00
parent 8f4354936c
commit 3c7dc9b9ad
5 changed files with 66 additions and 18 deletions

View File

@@ -33,7 +33,7 @@ type ServerSelection struct {
ISPs []string `json:"isps"`
Owned bool `json:"owned"`
// Mullvad, Windscribe
// Mullvad, Windscribe, PIA
CustomPort uint16 `json:"custom_port"`
// NordVPN
@@ -92,6 +92,7 @@ func (p *ProviderSettings) String() string {
"Regions: "+commaJoin(p.ServerSelection.Regions),
"Encryption preset: "+p.ExtraConfigOptions.EncryptionPreset,
"Port forwarding: "+p.PortForwarding.String(),
"Custom port: "+customPort,
)
case "mullvad":
settingsList = append(settingsList,