Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support ports that are not well known for use with port forwarding #1930

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

matteriben
Copy link
Contributor

Description:
Support ports that are not well known for use with port forwarding.

Related issue(s):

Fixes #1929

@matteriben matteriben requested review from a team as code owners August 1, 2024 23:17
Copy link

sonarcloud bot commented Aug 1, 2024

@matteriben matteriben self-assigned this Aug 1, 2024
Signed-off-by: Ivan Ivanov <[email protected]>
@0xivanov 0xivanov requested a review from a team as a code owner September 24, 2024 14:29
for (var nodeAddress : addressBook) {
for (var endpoint : nodeAddress.addresses) {
if (endpoint.port == desiredPort) {
if (!wellKnownPorts || endpoint.port == desiredPort) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we could remove int desiredPort and remove this if statement as a whole. WDYT?

Copy link

sonarcloud bot commented Sep 24, 2024

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.

support ports that are not well known for use with port forwarding
2 participants