fix(protonvpn): natpmp check for assigned internal port
This commit is contained in:
@@ -49,10 +49,10 @@ func (p *Provider) PortForward(ctx context.Context, _ *http.Client,
|
|||||||
assignedLiftetime, lifetime))
|
assignedLiftetime, lifetime))
|
||||||
}
|
}
|
||||||
|
|
||||||
if assignedInternalPort != assignedExternalPort {
|
if assignedInternalPort != internalPort {
|
||||||
logger.Warn(fmt.Sprintf("internal port assigned %d differs"+
|
logger.Warn(fmt.Sprintf("internal port assigned %d differs"+
|
||||||
" from external port assigned %d",
|
" from internal port requested %d",
|
||||||
assignedInternalPort, assignedExternalPort))
|
assignedInternalPort, internalPort))
|
||||||
}
|
}
|
||||||
|
|
||||||
port = assignedExternalPort
|
port = assignedExternalPort
|
||||||
|
|||||||
Reference in New Issue
Block a user