Commit Graph
29 Commits
Author SHA1 Message Date
eric 730e8a6dae docs: a configuration reference, and what each choice exposes
docs/configuration.md lists every JSON option, environment variable and
command-line flag: what it does, what it accepts, and what happens when it
is left out, with the .conf keys mapped onto them. Options that decide
whether traffic stays behind the proxy are marked.

docs/security.md explains those choices together: names looked up outside
the proxy, where unmatched traffic goes, direct fallback, IPv6 under TUN,
certificate checks, logs, and how the protocols fare on filtered networks,
without presenting any as safe from a censor. It ends with a configuration
to start from, which has been run.

examples/README.md says what each example is for and what to change before
deploying one. The README links all three and no longer names the TUN
stacks that were replaced.
2026-12-04 09:55:40 +08:00
eric 00eb09a0cb feat(plugins): add the AnyTLS and ShadowTLS v3 reference plugins
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.
2026-12-03 19:31:53 +08:00
eric 32944836ce docs: describe the plugin system, and add the example chains
The README gains a Plugins section: what a plugin is, the six that ship with
the tree, how one is configured as an outbound, why `path` must have a
directory part, why nothing is ever scanned for, why leaf refuses a library
anyone can rewrite, and why the optional `sha256` is worth setting. It says
plainly what none of that buys -- a plugin runs with leaf's privileges, so the
checks establish which file was loaded, not that it is friendly -- and how to
vet one with `--verify-plugin` first. It also covers building a leaf that can
load plugins at all, which neither the releases nor CI produce: the Linux
releases are static against musl and have no dynamic loader to call.

examples/ carries configs that run. The shadowsocks one connects through the
Rust plugin; the TLS ones chain a transport plugin under Trojan across the
Rust and Go implementations, with Windows variants where the paths differ,
and both READMEs give the server side needed to try them.
2026-12-03 19:31:53 +08:00
eric f967434f9f Add project logo 2026-05-28 15:44:46 +08:00
eric a8971524d6 Add MPTP usage 2026-03-19 07:17:33 +08:00
eric d82a54e34e Add docs for MPTP 2026-03-01 08:06:52 +08:00
eric c26a372b94 Update readme 2026-02-24 16:11:11 +08:00
eric f7b288ecf4 Add MPTP protocol 2026-02-24 16:01:40 +08:00
eric 7ad1345234 Update readme 2026-02-22 15:44:51 +08:00
eric 42c9d74676 Use ring as default crypto backend 2024-05-06 19:45:50 +08:00
eric fb1c84ce9e docs: fix play store link 2022-02-24 02:20:34 +08:00
eric 31145ab726 bin: boundif option 2021-12-29 10:21:07 +08:00
eric 21769dc385 chore: fixes docs 2021-09-20 17:37:31 +08:00
eycorsican 135df3d44e Update README.md 2021-09-08 14:27:51 +08:00
eric 63e9e835b0 docs: added play store link 2021-09-01 13:49:56 +08:00
eric 9afcc27fc2 v0.3.1 2021-05-07 17:55:14 +08:00
eycorsican ac8e7d4d4a Update README.md 2021-04-04 09:16:46 +08:00
eric da3cee9ff5 tests: added a simple integration test 2021-02-24 15:06:44 +08:00
eric a79394937a docs: certificates should be installed when using TLS 2021-02-16 13:06:24 +08:00
eric 632a4e3873 fakedns: make fake DNS fully compatible with "UDP connections" 2021-02-04 14:53:12 +08:00
eric a0d954e80f Update README 2020-12-20 13:52:17 +08:00
eric 02bb93c196 Add App Store link 2020-12-03 11:28:39 +08:00
eric 5a353f9a4e Update README 2020-11-17 08:05:56 +08:00
eric 6a82ee9b89 Update usage on OpenWrt 2020-10-27 12:50:30 +08:00
eric 7c6a9163e1 Update iOS demo link 2020-10-26 18:30:41 +08:00
eric 8db8a7e78c fix tun2socks-bin 2020-10-19 08:27:59 +08:00
eric b31c7c1623 update usage 2020-10-07 22:47:32 +08:00
eric 79b1c0c05d release v0.2.1 2020-10-07 22:27:55 +08:00
eric 897fc87ce8 initial commit 2020-10-07 22:14:06 +08:00