From c0062fb8078e46466f03437233c8ab503e40231b Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Wed, 13 Sep 2023 14:18:25 +0000 Subject: [PATCH] fix(protonvpn): natpmp check for assigned internal port --- internal/provider/protonvpn/portforward.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/provider/protonvpn/portforward.go b/internal/provider/protonvpn/portforward.go index 7eab60ccc..fe21e7bd0 100644 --- a/internal/provider/protonvpn/portforward.go +++ b/internal/provider/protonvpn/portforward.go @@ -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