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

Escape spaces in IPv6 ZoneID with %20 #703

Closed
wants to merge 1 commit into from

Conversation

sirzooro
Copy link

Link-local IPv6 addresses may have ZoneID attached at the end. ZoneId is name of corresponding network interface. On Windows usually it is "Local connection". Space in ZoneID causes problem when ICE candidate is parsed so it has to be escaped. It looks that there is no escaping defined specifically for SDP; the closest one is RFC 6874 for URI. This fix partially uses this approach and replaces spaces with %20.

Description

Reference issue

Fixes #...

Copy link

codecov bot commented Jun 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.20%. Comparing base (2a9fdb5) to head (92356b3).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #703      +/-   ##
==========================================
+ Coverage   79.19%   79.20%   +0.01%     
==========================================
  Files          41       41              
  Lines        3739     3741       +2     
==========================================
+ Hits         2961     2963       +2     
  Misses        547      547              
  Partials      231      231              
Flag Coverage Δ
go 79.20% <100.00%> (+0.01%) ⬆️
wasm 22.17% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Link-local IPv6 addresses may have ZoneID attached at the end. ZoneId
is name of corresponding network interface. On Windows usually it is
"Local connection". Space in ZoneID causes problem when ICE candidate
is parsed so it has to be escaped. It looks that there is no escaping
defined specifically for SDP; the closest one is RFC 6874 for URI.
This fix partially uses this approach and replaces spaces with %20.
@sirzooro
Copy link
Author

I have read more about this ZoneID and found that it has only local meaning and should not be sent out over the wire. So this PR is invalid, and different fix is needed here. I will create it.

@sirzooro sirzooro closed this Jun 30, 2024
@sirzooro sirzooro deleted the fix_zoneid_with_spaces branch June 30, 2024 19:34
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.

None yet

1 participant