mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-09 20:29:23 +02:00
feat(config): only use port forwarding servers when port forwarding is enabled for ProtonVPN and PIA
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user