Skip to content

Conversation

@Snezhkko
Copy link
Contributor

@Snezhkko Snezhkko commented Dec 4, 2025

The random-port retry loop in addAnyPortMapping shadowed the err variable, causing the function to return (0, nil) when all attempts failed. This change removes the shadowing and preserves the last error across both the fixed-port and random-port retries, ensuring failures are reported to callers correctly.

@Usernamefrzadyny3
Copy link

Usernamefrzadyny3 commented Dec 6, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants