The HTTP proxy server's dispatch method decodes the Proxy-Authorization Basic credential using base64.URLEncoding, but RFC 7617 specifies that Basic authentication uses standard Base64 encoding (base64.StdEncoding). The two encodings differ in their use of +/ vs -_ characters, so any credential containing 0xff or other bytes that encode to / or + in standard Base64 will fail to decode with URLEncoding, causing valid authentication attempts to always be rejected with 407. Additionally, the "Basic " scheme prefix check was case-sensitive, but RFC 7235 section 2.1 specifies that auth-scheme is case-insensitive. Fix both issues by switching to base64.StdEncoding and using strings.ToLower for the scheme comparison. |
||
|---|---|---|
| .github | ||
| app | ||
| core | ||
| extras | ||
| media-kit | ||
| scripts | ||
| .gitignore | ||
| CHANGELOG.md | ||
| Dockerfile | ||
| go.work | ||
| go.work.sum | ||
| hyperbole.py | ||
| LICENSE.md | ||
| logo.svg | ||
| platforms.txt | ||
| PROTOCOL.md | ||
| README.md | ||
| requirements.txt | ||
Hysteria is a powerful, lightning-fast, and censorship-resistant proxy.
Get Started
中文文档
Hysteria 1.x (legacy)
🛠️ Jack of all trades
Wide range of modes including SOCKS5, HTTP Proxy, TCP/UDP Forwarding, Linux TProxy, TUN - with more features being added constantly.
⚡ Blazing fast
Powered by a customized QUIC protocol, Hysteria is designed to deliver unparalleled performance over unreliable and lossy networks.
✊ Censorship resistant
The protocol masquerades as standard HTTP/3 traffic, making it very difficult for censors to detect and block without widespread collateral damage.
💻 Cross-platform
We have builds for every major platform and architecture. Deploy anywhere & use everywhere. Not to mention the long list of 3rd party apps.
🔗 Easy integration
With built-in support for custom authentication, traffic statistics & access control, Hysteria is easy to integrate into your infrastructure.
🤗 Chill and supportive
We have well-documented specifications and code for developers to contribute and/or build their own apps. And a helpful community, too.
If you find Hysteria useful, consider giving it a ⭐️!