Skip to content

Commit

Permalink
fix(protonvpn): natpmp check for assigned internal port
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Sep 13, 2023
1 parent 1ac031e commit c0062fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/provider/protonvpn/portforward.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ func (p *Provider) PortForward(ctx context.Context, _ *http.Client,
assignedLiftetime, lifetime))
}

if assignedInternalPort != assignedExternalPort {
if assignedInternalPort != internalPort {
logger.Warn(fmt.Sprintf("internal port assigned %d differs"+
" from external port assigned %d",
assignedInternalPort, assignedExternalPort))
" from internal port requested %d",
assignedInternalPort, internalPort))
}

port = assignedExternalPort
Expand Down

0 comments on commit c0062fb

Please sign in to comment.