-
Notifications
You must be signed in to change notification settings - Fork 63
Adds tcp/udp port mapper #35
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
Conversation
jeffkala
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make sense to sort this? Obviously that doesn't change the code much, but thinking for readability of the code.
|
Yes, I agree. I guess sort by number? |
qduk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this will definitely be useful. Thanks for the PR!
jeffkala
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now. Thanks for sorting it.
|
You're welcome. :) |
|
Actually, what did you do when there was a different tcp vs udp? |
|
I didn't take that into account, but I can! |
|
I broke out the individual protocols per @itdependsnetworks catch. |
|
Didn't realize |
jeffkala
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now, tested it locally and seems to work as expected.
Realizing this is not actually the case, appears pip installs this. When i setup a new venv without pip this isn't importable. |
not approved now that pkg_resources is not std lib
jeffkala
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think this gets us back to the original solution to just load the JSON file @jtdub , this is what we'd prefer to avoid adding dependencies.
Update as needed if I missed anything.
|
Thanks! |
Adds tcp/udp port mapper from: https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml