feat(privatevpn): native port forwarding support (#2285)

This commit is contained in:
Quentin McGaw
2024-08-16 14:20:00 +02:00
committed by GitHub
parent 1f2882434a
commit 11c2354408
7 changed files with 303 additions and 3 deletions

View File

@@ -120,6 +120,9 @@ func (l *Loop) run(runCtx context.Context, runDone chan<- struct{},
if updateReceived {
// Signal to the Update call that the service has started
// and if it failed to start.
if err != nil {
err = fmt.Errorf("starting port forwarding service: %w", err)
}
updateResult <- err
}
}

View File

@@ -12,7 +12,7 @@ type Settings struct {
Enabled *bool
PortForwarder PortForwarder
Filepath string
Interface string // needed for PIA and ProtonVPN, tun0 for example
Interface string // needed for PIA, PrivateVPN and ProtonVPN, tun0 for example
ServerName string // needed for PIA
CanPortForward bool // needed for PIA
ListeningPort uint16