* fix(acl): normalize trailing dot in domain matches
The ACL like
```yaml
- reject(example.com)
- reject(suffix:blocked.test)
- reject(*.wild.test)
```
can be easily bypass through by adding a dot to the domain like
example.com.:443
Signed-off-by: Cherrling <me@cherr.cc>
* fix(acl): trim all trailing dots and add tests
Use strings.TrimRight instead of strings.TrimSuffix so domains with
multiple trailing dots (e.g. example.com..) are also normalized and
cannot bypass ACL rules. Add test coverage for trailing-dot handling
on exact, wildcard and suffix domain rules, as well as for trailing
dots in rule patterns.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
---------
Signed-off-by: Cherrling <me@cherr.cc>
Co-authored-by: Toby <tobyxdd@gmail.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
|
||
|---|---|---|
| .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 ⭐️!