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

Fix IPv6 handling when converting file URL to UNC path #64

Merged
merged 1 commit into from
Aug 22, 2024
Merged

Conversation

rmisev
Copy link
Member

@rmisev rmisev commented Aug 22, 2024

The IPv6 address is converted to the UNC-supported IPv6 format: colons are replaced by hyphens and .ipv6-literal.net is appended. This is necessary because colons are not valid in UNC path components.

More information:

The IPv6 address is converted to the UNC-supported IPv6 format: colons
are replaced by hyphens and `.ipv6-literal.net` is appended. This is
necessary because colons are not valid in UNC path components.

More information:

* https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-dtyp/62e862f4-2a51-452e-8eeb-dc4ff5ee33cc

* https://en.wikipedia.org/wiki/IPv6_address#Literal_IPv6_addresses_in_UNC_path_names
Copy link

codecov bot commented Aug 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.66%. Comparing base (cd67f44) to head (8655991).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #64   +/-   ##
=======================================
  Coverage   99.66%   99.66%           
=======================================
  Files          16       16           
  Lines        2369     2373    +4     
  Branches      385      386    +1     
=======================================
+ Hits         2361     2365    +4     
  Misses          8        8           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rmisev rmisev merged commit 8655991 into main Aug 22, 2024
24 checks passed
@rmisev rmisev deleted the unc-ipv6 branch August 22, 2024 20:06
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.

1 participant