Repository navigation
fix(ssdp): accept standard header tokens and prepare 0.1.3 - #4
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Huawei HiLink SSDP responses include
HILINK_EXT. The parser rejected the underscore and discarded the entire response, so discovery timed out before fetching the router description.Accept the complete HTTP field-name token character set from RFC 9110 §5.6.2. Keep the existing ASCII/size limits and private/link-local LOCATION validation. Prepare
@motrix/nat0.1.3, retaining the UDP lifecycle defenses from 0.1.2.Validation:
pnpm run prepublishOnlypasses lint, typecheck, 469 tests, and build; four opt-in Docker cases are skipped locally. New regressions cover Huawei's response through WANPPPConnection discovery, all legal token punctuation, invalid delimiters, and public LOCATION rejection. The old negative test now uses an actually invalid character and includes a valid LOCATION to avoid passing for the wrong reason.Reference: https://www.rfc-editor.org/rfc/rfc9110.html#section-5.6.2
Fixes #2