feat(config): only use port forwarding servers when port forwarding is enabled for ProtonVPN and PIA

This commit is contained in:
Quentin McGaw
2024-07-31 14:49:33 +00:00
parent 72e227f87d
commit 5d75bbc869
2 changed files with 10 additions and 4 deletions

View File

@@ -76,8 +76,8 @@ func (p *Provider) overrideWith(other Provider) {
func (p *Provider) setDefaults() {
p.Name = gosettings.DefaultComparable(p.Name, providers.PrivateInternetAccess)
p.ServerSelection.setDefaults(p.Name)
p.PortForwarding.setDefaults()
p.ServerSelection.setDefaults(p.Name, *p.PortForwarding.Enabled)
}
func (p Provider) String() string {