619 Commits
Author SHA1 Message Date
YONG f1f640b12f feat: add Snell version 6 support (outbound + inbound) (#3410) 2026-11-05 18:29:11 +08:00
saba-futai 3f27ef39f8 chore: refactored and fixed issues for sudoku while also improving performance (#3333) 2026-10-21 23:51:58 +08:00
FlyingSB 8d57a8c57c fix: exclude opcode from P_DATA_V1 AEAD additional data for OpenVPN (#3237)
OpenVPN authenticates the opcode/peer-id header as AEAD additional data
only for P_DATA_V2. For P_DATA_V1 the additional data is the packet ID
alone. We included the opcode for both, so every data packet exchanged
with a server that does not push peer-id (e.g. SoftEther) failed
authentication and was silently dropped after a successful handshake.
2026-09-25 00:24:38 +08:00
Chenx Dust 5019cc090e fix: potential race condition in c.idleSession.Len() in idleCleanupExpTime() for anytls (#3225) 2026-09-19 22:02:11 +08:00
wwqgtxx 78210c9c72 fix: close connection after error handling in kcptun 2026-09-14 14:11:18 +08:00
wwqgtxx faeb537ae2 fix: close connection after error handling in tuic server 2026-09-14 11:34:27 +08:00
Token 6d179a1c45 fix: openvpn derive the tls-auth HMAC digest from auth instead of hard-coding SHA-1 (#3189) 2026-09-08 12:10:15 +08:00
saba-futai 8f54283e97 chore: updated sudoku to v0.5.0 (#3187) 2026-09-07 08:46:46 +08:00
wwqgtxx fd74ecb6e2 fix: trusttunnel client not waiting for TCP connection established 2026-09-05 09:36:30 +08:00
Chenx Dust 0159cf47ed fix: restore hysteria v1 udp handling (#3178)
Fixed two Hysteria v1 UDP regressions introduced in 48c1b1cdb2 :
- Mark UDP session requests correctly with UDP: true.
- Initialize the packet buffer with zero length and preallocated capacity to prevent leading zero bytes.
2026-09-04 22:06:21 +08:00
wwqgtxx 061966e797 chore: OpenVPN no longer relies on the underlying conn deadline functions 2026-08-27 15:36:11 +08:00
wwqgtxx 63024e3931 chore: remove unused imports in test 2026-08-16 14:54:00 +08:00
ayanami-desu 9b9dc8a06c fix: survive server-initiated soft reset and rekey for openvpn (#3109) 2026-08-16 02:24:36 +08:00
wwqgtxx 7ee0b05b3c chore: allow override IV_VER by peer-info for OpenVPN 2026-08-13 15:09:49 +08:00
wwqgtxx b27c659a6e feat: add client-metadata configuration to anytls and DON'T sent by default 2026-08-13 14:45:42 +08:00
vanbujhm 69a3142abc fix: apply default uplink chunk size for xhttp (#3061) 2026-08-03 22:02:57 +08:00
wwqgtxx 2ea54615bc chore: adjust internal dialQuic api 2026-07-30 09:18:40 +08:00
wwqgtxx f5fddd37ca fix: preserve WebSocket 0-RTT data order 2026-07-28 20:10:40 +08:00
wwqgtxx e18ef3a1a3 fix: harden ShadowQUIC JLS camouflage forwarding 2026-07-24 00:34:54 +08:00
wwqgtxx 5e3cb10b5b fix: avoid reserved TLS suffixes in JLS FakeRandom
Regenerate the random seed when FakeRandom ends in a TLS downgrade canary or the HelloRetryRequest suffix, as required by JLS v3. Use the configured random source for both client and server hellos.
2026-07-23 17:47:52 +08:00
wwqgtxx 978d25ae85 fix: enforce ShadowQUIC JLS authentication in QUIC layer 2026-07-22 15:13:47 +08:00
Lanlan13-14 e26714a181 feat: support TLS rekey fix, data-ciphers negotiation, tls-crypt-v2 for OpenVPN (#2989) 2026-07-18 19:18:54 +08:00
anytls bd749c65bc feat: sync anytls v0.0.13 (#2990) 2026-07-18 10:41:27 +08:00
wwqgtxx a5167fa4ab fix: allow JLS fallback before the server flight
Decide whether fallback is safe based on bytes actually written instead of JLS authentication status. This allows authenticated preflight failures, including HRR and TLS configuration mismatches, to relay the untouched ClientHello to the camouflage target.

Keep rejecting fallback after a partial or complete server flight, update jls-tls for pre-write alert suppression, and add coverage for both sides of the write boundary.
2026-07-16 23:02:17 +08:00
wwqgtxx f86bc224dc fix: align HelloRetryRequest handling with JLS v3
JLS v3 does not permit HelloRetryRequest during JLS authentication. Keep the ClientHello random unchanged across HRR and make clients continue as ordinary TLS with certificate verification.

When an authenticated ClientHello would require HRR, fail before writing handshake data and wrap ErrJLSAuthFailed. This allows stream and QUIC callers to forward the untouched handshake to the camouflage fallback instead of accepting a non-standard JLS exchange.
2026-07-16 22:17:24 +08:00
wwqgtxx 423611628c chore: better UserFromConn implementation 2026-07-16 20:47:52 +08:00
freephilx 0ee584171e fix: reconnect OpenVPN on server soft reset (#2978) 2026-07-16 17:04:33 +08:00
wwqgtxx 9a7e726657 fix: performance regression caused by unnecessary wrapping in stream encryption 2026-07-16 16:27:34 +08:00
wwqgtxx 5c1b8bfc31 chore: authenticate JLS ServerHello using its wire encoding
JLS authenticates the serialized ServerHello with only the random field zeroed. The previous marshalForJLS implementation reordered extensions to match rustls-jls's internal struct order, even when that order differed from the bytes sent on the wire.

That canonical order is not defined by TLS or the JLS specification and couples this package to a rustls-jls implementation detail. Use the normal marshal output when sending and the original wire bytes when receiving, preserving extension order and leaving the TLS transcript untouched.

This intentionally removes compatibility with rustls-jls clients that re-encode ServerHello extensions before JLS verification.
2026-07-16 09:04:31 +08:00
wwqgtxx e3c1ea06a4 chore: better handshakeRecorderConn impl 2026-07-16 08:40:18 +08:00
wwqgtxx e9119858b2 chore: change the brutal negotiation in shadowquic to be asynchronous 2026-07-16 00:02:50 +08:00
wwqgtxx 769ea6f5b4 feat: support restls for vmess/vless/trojan outbound and listener 2026-07-15 16:49:02 +08:00
wwqgtxx c015694bf3 feat: support shadowtls for vmess/vless/trojan outbound and listener 2026-07-15 15:51:35 +08:00
wwqgtxx 86984831ed fix: the incorrect tls stack was used in shadowtls tests 2026-07-15 08:54:41 +08:00
wwqgtxx 2b0d8411fa fix: make shadowtls v2 read deadlines recoverable 2026-07-15 00:31:49 +08:00
wwqgtxx 7a3c37cb33 fix: make shadowtls v3 read deadlines recoverable 2026-07-15 00:31:14 +08:00
wwqgtxx 3f22309b51 chore: respect the incoming context during JLS fallback 2026-07-14 21:51:12 +08:00
wwqgtxx 44dd834fef chore: preserve jls in-user for shadowsocks listeners 2026-07-14 17:58:28 +08:00
wwqgtxx 309cfbd613 chore: reimplement shadowtls 2026-07-14 17:22:01 +08:00
wwqgtxx 94409eb659 chore: remove redundant writeFull in sudoku 2026-07-14 09:16:29 +08:00
wwqgtxx 1d1b370e4c chore: remove redundant writeFull in snell v4 2026-07-14 09:16:19 +08:00
wwqgtxx f23e43e68a chore: remove redundant writeFull in gost relay 2026-07-14 09:16:19 +08:00
wwqgtxx 95af34af06 chore: remove redundant writeFull in shadowquic 2026-07-14 09:16:19 +08:00
wwqgtxx bfa9ea1d2b feat: support brutal for shadowquic (mihomo private extension) 2026-07-14 08:49:22 +08:00
wwqgtxx 3b73922fb9 chore: cleanup shadowquic code 2026-07-14 00:28:24 +08:00
wwqgtxx 611a4481fa feat: support jls for vmess/vless/trojan outbound and listener 2026-07-13 18:49:53 +08:00
wwqgtxx dc4d4fcb8c chore: allow jls with utls client-fingerprint 2026-07-13 08:57:32 +08:00
wwqgtxx 2b2bdf6d22 feat: support jls for shadowsocks outbound and listener 2026-07-13 01:31:09 +08:00
wwqgtxx aea5ce4142 feat: support shadowquic outbound and listener 2026-07-12 22:28:43 +08:00
wwqgtxx 5677fd3808 feat: add name-cert-verify to support separate certificate verification name 2026-07-12 18:12:59 +08:00