Commit Graph
34 Commits
Author SHA1 Message Date
eric bedc609506 test(e2e): run the reference plugins against upstream servers
A new interop lane puts a real leaf with each plugin in front of the servers
people deploy, built from source at pinned revisions: anytls-go, sing-box
stable and its testing branch, mihomo, and the original shadow-tls. Every
pair runs the stream behaviours, plus the server's padding scheme checked on
the wire, fingerprints, and the connections that must fail: wrong password,
hijacked to the real site, TLS 1.2 site in strict mode.

AnyTLS skips half-close-tail, which its protocol cannot carry. ShadowTLS
marks it a known defect: the host shuts the socket's write side while an
engine is still handshaking.

`make interop` runs the lane, `make e2e` leaves it out, and CI runs it in a
job of its own with the built servers cached. The harness no longer hands
out a port twice in one process, and builds upstream Rust servers with their
own toolchain, outside the workspace.
2026-12-03 19:31:53 +08:00
eric c08f3dd0f9 build: run the plugin suites in CI, and ignore what the plugins build
`make e2e` runs the end-to-end suite with `--strict`, minus the soak lane;
`make soak` is that lane plus the slow cost meters. `make plugin-test` covers
what an end-to-end run cannot reach -- the host's own loader and wrapper
tests, the ABI parity test, and each plugin's unit tests, one language at a
time -- and `make plugin-test-san` builds the C plugin's tests under address
and undefined-behaviour sanitizers, kept separate because not every toolchain
ships the runtimes.

CI grows a plugin job on Linux and macOS that runs the suite and
`make plugin-test`, and checks that `leaf-cli` still builds with plugin
support, since nothing else in the matrix compiles that feature. The same lane
exists for Windows but is started by hand: the suite has been through Windows
green on ARM64, and this runner is x86-64. A sanitizer lane runs the hostile
cases with the runtime exported so a plugin loads against it, and uploads the
artifact directory when a case fails. The soak workflow is the one that is
nightly: it runs the long lane out of hours with a longer timeout scale and
more meter repetitions, so its numbers are worth comparing between nights.

`.gitignore` learns the artifacts the plugin builds leave in the tree.
2026-12-03 19:31:53 +08:00
Chinsyo 8bc305c342 Update github actions checkout to v4, update rust-toolchain for *-apple-darwin to stable 2024-10-19 09:02:06 +08:00
eric 415dab3b66 Updated upload-artifact@v4 and download-artifact@v4 2024-10-05 13:22:21 +08:00
eric 42c9d74676 Use ring as default crypto backend 2024-05-06 19:45:50 +08:00
eric 7a31f50c56 chore: fix cross build 2024-05-02 02:46:18 +08:00
eric e2541dc594 net: return error instead of panic on receiving unexpected target 2024-04-20 21:06:44 +08:00
eric d834f500fa ci: remove mips 2024-01-23 01:29:21 +08:00
eric 7b70f71873 ci: remove mips* targets 2024-01-21 01:44:07 +08:00
eric df960e88d9 ci: fix deps installation 2023-06-17 03:08:32 +08:00
eric ed62306405 Fix release 2023-03-31 07:31:30 +08:00
eric 72002a1ad1 Fix workflow syntax error 2023-03-31 07:17:03 +08:00
eric be20a07391 Release Android and iOS/macOS libs from CI 2023-03-31 07:04:33 +08:00
eric 4e6117b376 Build Android and iOS/macOS libraries on CI 2023-03-31 06:56:22 +08:00
eric 295a3cfece Use stable Rust version for release build 2023-02-11 15:39:07 +08:00
eric 0195e9a9bc ci: enable tests 2022-04-20 23:02:35 +08:00
eric 5a6c4cec96 chore: strip was stabilized 2022-04-19 02:23:41 +08:00
eric b0b18dab84 v0.4.1, fix ci deps 2021-12-29 10:42:54 +08:00
eric 2cbec8bcd3 refactor 2021-07-02 06:37:07 +08:00
eric 494f7ff35d v0.2.13 2021-03-12 13:56:01 +08:00
eric 2da69970c9 ci: pass strip flag via env variable 2021-03-06 10:13:57 +08:00
eric d0255f7345 ci: add a missing target 2021-02-24 17:12:18 +08:00
eric 775048f62f ci: fix workflow 2021-02-24 15:10:36 +08:00
eric da3cee9ff5 tests: added a simple integration test 2021-02-24 15:06:44 +08:00
eric 7549b20f08 ci: prefer musl builds 2021-02-18 17:43:21 +08:00
eric 269250f144 bin: include information of the latest commit in the version string 2021-02-05 21:35:30 +08:00
eric 807ad5ab5e Added several inbounds
* Added WebSocket inbound
* Added trojan inbound
* Added chain inbound

Similar to the chain outbound, chain inbound can be used to chain
multiple inbounds. The Nginx/CDN (TLS) + WebSocket + trojan setup is tested.

There are also breaking changes to the JSON config format.

Fake DNS now can operate in either Include or Exclude mode.

SOCKS inbound settings no longer has the `bind` option, the local_addr of
the TCP socket is used as the UDP relay address.
2020-12-18 13:08:50 +08:00
eric e9e9a189f6 Fix release 2020-11-24 18:23:55 +08:00
eric 2f70780b14 Use ring and rustls on iOS 2020-10-26 18:04:34 +08:00
eric ce5366ebc4 Add OpenSSL and support more targets
* Added OpenSSL AEAD support
* Added OpenSSL TLS support
* Added mips/mipsel support

OpenSSL features can be conditinally compiled, targets not supported
by ring should use OpenSSL, e.g. mips/mipsel, while other targets
should use ring and rustls for crypto and TLS for better performance.

Crypto functions from Shadowsocks and VMess are unified in common/crypto.
2020-10-24 11:08:51 +08:00
eric 8db8a7e78c fix tun2socks-bin 2020-10-19 08:27:59 +08:00
eric 761fdb2de4 add more targets 2020-10-17 23:06:13 +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