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

Use netloc from urlparse to specify the host #79

Merged
merged 2 commits into from
Sep 3, 2024

Conversation

shsms
Copy link
Contributor

@shsms shsms commented Sep 3, 2024

This is because netloc is formatted to be the network location, and wraps ipv6 in square brackets, which we lose if we just use the host field.

netloc also contains the port if a port was in the original uri. We need to append the default port only if the original uri didn't have a port.

This fixes an issue when creating a grpc Channel with ipv6 addresses.

This is because `netloc` is formatted to be the network location, and
wraps ipv6 in square brackets, which we lose if we just use the `host`
field.

`netloc` also contains the port if a port was in the original uri.  We
need to append the default port only if the original uri didn't have a
port.

This fixes an issue when creating a grpc Channel with ipv6 addresses.

Signed-off-by: Sahas Subramanian <[email protected]>
@shsms shsms requested a review from a team as a code owner September 3, 2024 08:23
@shsms shsms requested a review from llucax September 3, 2024 08:23
@github-actions github-actions bot added the part:code Affects the code in general label Sep 3, 2024
Signed-off-by: Sahas Subramanian <[email protected]>
@github-actions github-actions bot added the part:docs Affects the documentation label Sep 3, 2024
@llucax llucax modified the milestones: v0.6.1, v0.7.0 Sep 3, 2024
@shsms shsms added this pull request to the merge queue Sep 3, 2024
Merged via the queue into frequenz-floss:v0.x.x with commit 5dc137c Sep 3, 2024
14 checks passed
@shsms shsms deleted the use-netloc branch September 3, 2024 09:30
@llucax llucax modified the milestones: v0.7.0, v0.6.1 Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
part:code Affects the code in general part:docs Affects the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants