mirror of
https://github.com/eycorsican/leaf.git
synced 2026-12-05 16:02:32 +00:00
Two protocols leaf does not implement, each a thin Go adapter over the library existing implementations use: anytls/sing-anytls for AnyTLS, and sing-shadowtls with metacubex/utls for ShadowTLS, at sing-box v1.14.4's pins. AnyTLS keeps TLS inside the plugin, since its padding scheme is defined over TLS records, and shares one client per outbound so a server's own scheme carries to the next connection. ShadowTLS is a transport under a chain, usually Shadowsocks. The ShadowTLS adapter signs the session ID itself rather than through uTLS's hook: with a browser fingerprint that hook sends Go's own ClientHello, and breaks on a HelloRetryRequest. Each has unit tests against the library's server, READMEs, and example configs. Both binaries are GPL-3.0, from their libraries.
21 lines
545 B
AMPL
21 lines
545 B
AMPL
module leaf-plugins/shadowtls-cabi-go
|
|
|
|
go 1.26.0
|
|
|
|
require (
|
|
github.com/metacubex/utls v1.8.7
|
|
github.com/sagernet/sing v0.6.3
|
|
github.com/sagernet/sing-shadowtls v0.2.2-0.20260928201441-a9c0127d5c99
|
|
leaf-plugins/leaf-abi-go v0.0.0
|
|
)
|
|
|
|
require (
|
|
github.com/andybalholm/brotli v1.0.6 // indirect
|
|
github.com/klauspost/compress v1.17.9 // indirect
|
|
golang.org/x/crypto v0.33.0 // indirect
|
|
golang.org/x/exp v0.0.0-20240904232852-e7e105dedf7e // indirect
|
|
golang.org/x/sys v0.30.0 // indirect
|
|
)
|
|
|
|
replace leaf-plugins/leaf-abi-go => ../leaf-abi-go
|