~bigbes/shroud: 3804bcf4

feat(vless): add VLESS+REALITY transport support

Add VLESS over REALITY as a third VPN transport alongside Shadowsocks and AmneziaWG.

- Implement VLESS protocol parser, TCP relay, and REALITY-based TLS server.
- Add x25519 keypair and short ID generation with tests.
- Add MMDB manager for automatic download and daily update of GeoIP databases.
- Integrate VLESS server lifecycle into main serve command and API handlers.
- Add CLI subcommands: vless keygen, vless info, vless share.
- Extend store with VLESSKeyData and REALITY server keys persistence.
- Update config with vless section and MMDB URL/cache/auto-update settings.

false

Eugene Blikh <bigbes@gmail.com> — 2026-03-19 07:29:34 UTC

Commit 3804bcf465a4eb00d1f03720316d0a176b0b97fbview raw patch

Parent(s): 5afb3bad

16 changed file(s)

FileStatus+
cmd/shroud/main.go M +236 -8
config.example.yaml M +14 -2
go.mod M +2
go.sum M +4
internal/api/handlers.go M +14
internal/api/models.go M +6 -1
internal/api/router.go M +23 -15
internal/config/config.go M +67 -2
internal/mmdb/mmdb.go A +197
internal/store/store.go M +9 -1
internal/vless/keygen.go A +37
internal/vless/keygen_test.go A +68
internal/vless/protocol.go A +124
internal/vless/protocol_test.go A +173
internal/vless/relay.go A +114
internal/vless/server.go A +169