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

normalize binding addresses #49

Merged
merged 2 commits into from
Apr 26, 2023
Merged

normalize binding addresses #49

merged 2 commits into from
Apr 26, 2023

Conversation

ekoby
Copy link
Member

@ekoby ekoby commented Apr 25, 2023

  • allow more flexible configuration of bindings
  • update ziti-sdk

Binding addresses can be specified via tuple, string, or int, such as the following binding addresses are considered the same:

  • ('0.0.0.0', 1080)
  • ('', 1080)
  • '0.0.0.0:1080'
  • ':1080'
  • 1080

fixes #44

- allow more flexible configuration of bindings
- update ziti-sdk
@ekoby ekoby requested a review from a team as a code owner April 25, 2023 19:48
@@ -20,14 +20,40 @@
from . import context, zitilib


def process_bindings(orig):
Copy link
Member

Choose a reason for hiding this comment

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

how hard would it be to get some tests added for this bit of code? it'd be helpful to see what sort of inputs you tried and it'd be just 'a good idea' overall, I'm sure you'd agree. :)

Copy link
Member

Choose a reason for hiding this comment

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

perhaps some doc too?

@ekoby ekoby requested review from dovholuknf and a team April 25, 2023 20:26
@ekoby ekoby merged commit d4d5ac8 into main Apr 26, 2023
9 of 10 checks passed
@ekoby ekoby deleted the normalize-binding-addresses branch April 26, 2023 13:08
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.

Monkeypatch bind port string is not supported
2 participants