Repository navigation
Preserve inherited port protocol for exact-port attributes - #344764
Merged
Alex Ross (alexr00) merged 2 commits intoOct 29, 2026
Merged
Alex Ross (alexr00) merged 2 commits into
Alex Ross (alexr00) merged 2 commits into
Conversation
Alex Ross (alexr00)
enabled auto-merge (squash)
October 29, 2026 10:58
Alex Ross (alexr00)
approved these changes
Oct 29, 2026
Martin Aeschlimann (aeschli)
approved these changes
Oct 29, 2026
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.
Fixes #344750.
A label-only exact-port rule currently erases HTTPS inherited from an overlapping range, making the forwarded URI and Ports view fall back to HTTP. Preserve the accumulated protocol when the exact rule omits it; explicit HTTP/HTTPS overrides retain precedence. This also prevents an empty exact rule from incorrectly activating
remote.otherPortsAttributes.Five regression tests cover HTTP/HTTPS inheritance, ranges starting below or at the exact port, explicit overrides, and empty/undefined-rule fallback interactions.
Validation
git diff --checkpass.protocol: "https"after the fix.Before — unmodified source:
After — fixed source:
Checks ran on base
915c6faed9c9, before rebasing onto959f45119fbe; affected files and dependencies were unchanged and checks were not rerun. Native verification used a controlled local provider, without a TLS exchange or SSH/Dev Containers/cloud connection. Full distribution build, full suite and broad typecheck were not run.