hotfix(protonvpn): port forward only option

- Allow to use with Protonvpn (not just PIA)
- Update code comments
- Check server supports port forwarding when invoking port forward code
This commit is contained in:
Quentin McGaw
2024-07-31 14:43:59 +00:00
parent aaf3019d8c
commit c5c37e7f96
3 changed files with 14 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ type tunnelUpData struct {
// Port forwarding
vpnIntf string
serverName string // used for PIA
canPortForward bool // used for PIA
canPortForward bool // used for PIA and ProtonVPN
username string // used for PIA
password string // used for PIA
portForwarder PortForwarder