Commit Graph
4204 Commits
Author SHA1 Message Date
wwqgtxx efd63d8746 chore: extract bitmap handling from QUIC crypto reassembly 2026-07-28 18:26:08 +08:00
wwqgtxx 4fcf9aedea fix: track QUIC crypto stream coverage without repeated range sorting 2026-07-28 17:24:59 +08:00
wwqgtxx c807c9a040 chore: let the HTTP/2 sniffer assemble header blocks across continuation frames 2026-07-28 17:24:52 +08:00
wwqgtxx 4859d14254 chore: let quic sniffer handle coalesced packets and larger client hello 2026-07-28 16:40:58 +08:00
wwqgtxx c235dc18cd chore: let the sniffer assemble client hello across TLS records 2026-07-28 16:00:56 +08:00
wwqgtxx 2bade2940a chore: allow the sniffer to read more data if possible 2026-07-28 15:10:05 +08:00
wwqgtxx cb8e9900f6 chore: let sniffer support multi-round reading 2026-07-28 10:32:18 +08:00
Kosta e889b68955 feat: support H2C and QUICv2 sniffing (#3036) 2026-07-28 08:44:16 +08:00
wwqgtxx 2e8a04c998 fix: tailscale failed to recover after the network was restored 2026-07-27 21:20:09 +08:00
wwqgtxx 3c16aaf118 chore: update quic-go to 0.61.0 2026-07-27 16:58:02 +08:00
TWO666 fb002210ff fix: tun dns hijack sending zero-filled or stale packets when PackBuffer reallocates (#3037)
D.Msg.PackBuffer sizes its scratch space by the uncompressed message length
and silently allocates a new slice when that exceeds the given buffer, even
though the compressed result would fit. The udp hijack path in
listener/sing_tun/dns.go always sends the original buffer, producing a
correct-length datagram full of zeros or stale bytes whenever a reply's
uncompressed size exceeds SafeDnsPacketSize (e.g. 100+ A records for one
name). Copy the packed result back into the caller's buffer when it fits.
The tcp path in RelayDnsConn already guards against this; the udp path did
not.
2026-07-27 13:03:03 +08:00
wwqgtxx 95f7a0c512 fix: remove incorrect quic error wrapping 2026-07-27 02:04:51 +08:00
wwqgtxx 8453e589df feat: support AmneziaWG v3.0 2026-07-26 19:13:01 +08:00
Kosta 3a779ddabf fix: typo in uplinkHTTPMethod (#3029) 2026-07-26 16:12:56 +08:00
wwqgtxx 6bb8b98314 chore: strictly verify the syntax for Clash-style domain wildcards 2026-07-26 13:13:59 +08:00
wwqgtxx 49a5419d3c chore: update tailscale to v1.102.0 2026-07-26 12:51:50 +08:00
wwqgtxx a2c9556a0f fix: HTTP/2 read loop spinning on underlying StreamError 2026-07-25 22:35:09 +08:00
wwqgtxx b9faf97198 chore: improve internal sharing mechanism for dnsClient 2026-07-24 12:36:50 +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
wwqgtxx d8fbf85f38 chore: update bart 2026-07-21 20:07:10 +08:00
wwqgtxx e40b5962e4 feat: add rate-limit for restls listener 2026-07-20 14:51:26 +08:00
wwqgtxx 05b5334ce0 feat: add handshake-timeout for hysteria2 2026-07-20 10:13:03 +08:00
Lanlan13-14 e26714a181 feat: support TLS rekey fix, data-ciphers negotiation, tls-crypt-v2 for OpenVPN (#2989) v1.19.29 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 9ae1cc2be2 fix: shadowquic JLS pre-flight fallback handle 2026-07-17 15:52:42 +08:00
wwqgtxx 1eb49e0571 doc: explain the flaws in the official Shadowquic implementation regarding JLS 0-RTT authentication 2026-07-17 08:39:14 +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 a70af27451 fix: remove unnecessary quinn-jls compatibility behavior 2026-07-16 10:03:47 +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
AaronChen0 c079b0cc12 fix: panic on full-width IP-SUFFIX rules (#2975) 2026-07-15 21:51:32 +08:00
wwqgtxx b75a776d39 chore: clean up duplicate helpers in tests 2026-07-15 18:29:59 +08:00
wwqgtxx 9ab75434a9 feat: support restls/jls for snell outbound and listener 2026-07-15 18:16:38 +08:00
wwqgtxx da5a3e52ae chore: rewrite the internal mutual exclusion logic of the outbound 2026-07-15 17:55:48 +08:00
wwqgtxx b6ed8e2643 chore: rewrite the internal mutual exclusion logic of the listener 2026-07-15 17:43:18 +08:00
wwqgtxx 8507c1e221 fix: missing override shadow-tls-opts and restls-opts in xhttp download-settings 2026-07-15 17:42:58 +08:00
wwqgtxx bc5976f4ed chore: sync internal logic 2026-07-15 16:59:59 +08:00
wwqgtxx 0e7c3c79e3 feat: support restls for anytls outbound and listener 2026-07-15 16:52:21 +08:00
wwqgtxx 769ea6f5b4 feat: support restls for vmess/vless/trojan outbound and listener 2026-07-15 16:49:02 +08:00
wwqgtxx bc0e5aa835 feat: support shadowtls for anytls outbound and listener 2026-07-15 16:18:37 +08:00
wwqgtxx c015694bf3 feat: support shadowtls for vmess/vless/trojan outbound and listener 2026-07-15 15:51:35 +08:00
wwqgtxx 8413f50407 chore: skip frequently failed tests on windows go1.20 2026-07-15 10:18:47 +08:00
wwqgtxx 86984831ed fix: the incorrect tls stack was used in shadowtls tests 2026-07-15 08:54:41 +08:00