fix: Remove wrapping [] from input IP addresses #34
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/resolvematrix!34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "zoe/fix-invalid-ipv6-parsing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This was causing IPv6 hosts to fail to parse properly, and therefore
giving results like
Named("[2a0b", "<redacted>]")instead ofLiteral("[2a0b:<redacted>]:8448")Root cause:
IpAddr::from_strexpects an IP address without the brackets.Simple fix is to add a test case with brackets, and a few lines of code
to remove the brackets if they exist.
See-Also:
This was causing IPv6 hosts to fail to parse properly, and therefore giving results like `Named("[2a0b", "<redacted>]")` instead of `Literal("[2a0b:<redacted>]:8448")` Root cause: `IpAddr::from_str` expects an IP address without the brackets. Simple fix is to add a test case with brackets, and a few lines of code to remove the brackets if they exist. See-Also: - [Start of conversation](https://matrix.to/#/!ksTlboXVgcyWjv5GrlEeKyQuJ8ZCprnwQx2b6-BQ44Q/%24ycrGAve619dUbXgiQO-OFTvXMXNy28ltyCSSek_5NpY?via=wolfgirl.pet&via=explodie.org&via=matrix.org) - [End of conversation](https://matrix.to/#/!ksTlboXVgcyWjv5GrlEeKyQuJ8ZCprnwQx2b6-BQ44Q/%24zKpTlRDwvymvwUcGhgqO4Agcj0eqEgDf6WFc6Q6i9D4?via=wolfgirl.pet&via=explodie.org&via=matrix.org)ffb5b6852b1883740c13