Skip to content

Handle lowercase transport address schemes#350

Open
samsamtrum wants to merge 1 commit into
unicity-sphere:mainfrom
samsamtrum:fix-transport-address-scheme-case
Open

Handle lowercase transport address schemes#350
samsamtrum wants to merge 1 commit into
unicity-sphere:mainfrom
samsamtrum:fix-transport-address-scheme-case

Conversation

@samsamtrum
Copy link
Copy Markdown

Fixes transport address scheme handling for DIRECT:// / PROXY:// inputs.

The address normalizer already lowercases direct/proxy addresses in core/address.ts, but createTransportAddressResolver() only recognized uppercase schemes. A normalized direct://... address could therefore skip the direct/proxy fallback path and fail resolution.

This makes the scheme check case-insensitive while preserving the original address passed to transport lookups, and adds a regression test for lowercase direct://.

Tested:

npx vitest run tests/unit/transport/transport-resolver.test.ts

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