Channel::from_shared doesn't support unix URIs
Open
- Dominant language
- Rust
- Stars
- 12.5k
- Forks
- 1.3k
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 24
Description
## Bug Report
If I do `Channel::from_shared("unix:///tmp/test")` I get a `invalid URI unix:///tmp/test. Reason invalid format`. This is because the URI is parsed by `http::uri::Uri` which doesn't support that protocol.
`Endpoint::from_shared` works fine though since this PR: https://github.com/hyperium/tonic/pull/2218
I can switch to `Endpoint::from_shared` but this behavior is a bit unexpected.
### Version
`0.14.2`
Contributor guide
Assessment
This issue has not been assessed yet.