How apernet/hysteria works
Project type and purpose
• Hysteria is a high‑performance, censorship‑resistant proxy server and client built in Go.
• It provides multiple proxy modes (SOCKS5, HTTP proxy, TCP/UDP forwarding, TProxy, TUN), uses a custom QUIC‑based protocol for transport, and supports pluggable authentication, access control, and traffic logging.
File structure
• Top‑level “app” directory: contains the client and server command‑line interfaces (CLI), configuration loading, TLS setup, HTTP server, forwarding engines, multiplexing, redirect (packet socket), and TUN/TProxy implementations.
• “core” directory: implements the core protocol (QUIC‑based framing, congestion control algorithms), common utilities, fragmentation, PMTUD, client and server endpoint logic.
• “extras” directory: optional plugins (authentication methods, ACL‑based outbounds, MASQ, obfuscation, traffic sniffer, transport extensions).
• Build and CI config: Dockerfile, GitHub workflows, go.mod/go.work for multi‑module builds.
• Tests: unit tests in each package, integration tests under core/internal/integration_tests.
README for additional insights
• Confirms that Hysteria masquerades as HTTP/3, uses QUIC for performance/resistance, and is extensible with custom authentication, traffic statistics, and access control.