Commit Graph
2926 Commits
Author SHA1 Message Date
世界 08eaa2878c Send reality fallback request before returning
When authentication failed, the reality client returned the error and
sent the fallback request from a goroutine on the same connection. The
TLS dialer closes the connection when the handshake returns an error, so
the request always failed with "use of closed network connection" and
the client closed the connection right after the target's handshake.
Send the request within the handshake context before returning the
error, so the caller owns the connection again once it gets the error.
2026-11-14 07:52:37 +00:00
世界 25d6a21f75 Use configured time and root pool in reality client
The reality session id carried time.Now() instead of the configured
time, which is the NTP clock when ntp is enabled, so a client whose
system clock was off failed every handshake against a server that sets
max_time_difference. The certificate check after a failed
authentication also used the system clock and system roots instead of
the configured clock and certificate store, so it rejected a valid
target and skipped the fallback request.
2026-11-14 07:52:37 +00:00
世界 0a03261e79 Send reality client version 1.8.2
Xray-core v26.7.11 to v26.9.7 refused REALITY clients older than
26.3.27 unless the server set minClientVer, and operators set it to
1.8.2, the version mihomo sends, to let third-party clients connect.
The setting stays after Xray-core dropped that default, and it rejects
sing-box, which sends 1.8.1. The version is only checked against the
server's minClientVer and maxClientVer, and Xray-core never released a
1.8.2, so send the same version as mihomo.
2026-11-14 07:52:37 +00:00
世界 92724ee548 Drop Edge 85 and iOS 14 from random uTLS fingerprint
The random fingerprint picked one of chrome, firefox, edge, safari and
ios per process. Edge 85 and iOS 14 are no longer current browsers and
send no X25519MLKEM768 key share, so a process that picked one of them
failed every REALITY handshake against Xray-core v26.9.8 and later
servers. Pick only from fingerprints of current browsers.
2026-11-14 07:52:37 +00:00
世界 3e34bc1765 Update uTLS to v1.9.0-alpha.1
The firefox and safari fingerprints are now Firefox 148 and Safari 26.3,
which send an X25519MLKEM768 key share ahead of X25519.
2026-11-14 07:52:37 +00:00
世界 2cd3e2f848 Remove ineffective ALPN override from reality client
BuildHandshakeState already copied the fingerprint's ALPN into the
config, so the loop assigned the extension its own protocols. The
reality ClientHello keeps carrying the fingerprint's ALPN, as in
Xray-core.
2026-11-14 07:52:37 +00:00
世界 39501357a5 Stop removing X25519MLKEM768 from reality ClientHello
Xray-core v26.9.8 and later REALITY servers reject a ClientHello that
has no X25519MLKEM768 key share ahead of X25519 and fall back to the
target, so sing-box reality clients failed against them with "reality
verification failed". Removing the group and share also made the chrome
hello differ from the browser it imitates. Send the fingerprint's key
shares unchanged, as Xray-core does.

The randomized fingerprint picked the X25519MLKEM768 group and key share
with separate coin flips. A group without a share makes post-quantum
preferring servers send a HelloRetryRequest, which uTLS cannot answer
for X25519MLKEM768 and REALITY cannot relay; a share without the group
is rejected by OpenSSL with illegal_parameter. Always offer both.
2026-11-14 07:52:37 +00:00
世界 c6770bf150 Fix ShadowTLS v2 client authentication with X25519MLKEM768
The client hashed only the bytes its TLS stack consumed, so session
tickets sent together with the server Finished were left out and the
server did not authenticate the connection.
2026-11-14 07:52:37 +00:00
世界 53440b357b Fix buffer sizes of sockets hidden from quic-go 2026-11-14 06:37:19 +00:00
世界 2b45ea59bd Fix missing handshake timeout in SSH outbound 2026-11-14 06:27:29 +00:00
世界 0c0a655136 Fix auto-redirect overwriting marks of other programs 2026-11-14 06:25:05 +00:00
世界 f2816c2582 Fix sniffed ECH public name overriding DNS mapped domain 2026-11-14 05:28:22 +00:00
世界 61977994c3 Record HTTPS address hints in DNS reverse mapping 2026-11-14 05:28:12 +00:00
世界 6db3f11263 Fix neighbor table going stale after netlink receive overrun 2026-11-14 05:22:33 +00:00
世界 6420f53fc6 Fix broken documentation anchors 2026-11-14 05:16:50 +00:00
世界 2d6b038ce9 Fix broken migration links in deprecation notes 2026-11-14 05:16:50 +00:00
世界 c98968c583 Remove references to removed inbound fields from docs 2026-11-14 05:16:50 +00:00
世界 3c9d5de6f6 Fix field references in DNS documentation 2026-11-14 05:16:50 +00:00
世界 761e59fc9f Fix default interface detection in OpenVZ containers 2026-11-14 05:08:31 +00:00
世界 5e613f94fc Remove unused sniff override destination 2026-11-14 04:42:41 +00:00
世界 dfc2204298 Fix sniffers clearing reverse mapped domain 2026-11-14 04:42:41 +00:00
世界 b33a1a5c6b Fix OpenVPN Netscape certificate type compatibility 2026-11-10 11:22:51 +00:00
世界 b03f8b149f Fix OpenVPN TLS cipher and group compatibility 2026-11-10 11:14:08 +00:00
世界 15ad18ab56 Fix VMess and VLESS mux servers with concurrent streams 2026-11-10 11:09:43 +00:00
世界 01a98c3035 Fix Snell UDP datagram truncation and session drops 2026-11-10 11:03:06 +00:00
世界 412e9de459 Fix socks dropping data pipelined after the request 2026-11-10 10:02:14 +00:00
世界 bff28239c1 Fix ShadowTLS record framing of vectorised writes 2026-11-10 09:40:19 +00:00
世界 befb3129ab Fix UDP reply addresses through proxy outbounds 2026-11-10 09:29:45 +00:00
世界 9766191e9d Fix Shadowsocks UDP associations closed by invalid packets 2026-11-10 09:22:25 +00:00
世界 a907a2c2a6 Fix AnyConnect authentication loops 2026-11-10 06:34:38 +00:00
世界andClaude Opus 5.5 b56e1872de Fix Snell dead idle reuse sessions and align server aborts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQUwTJ9zEGy2kHezrAgmS5
2026-11-09 15:16:54 +00:00
世界 0b83b66c47 Fix GSO frames with more segments than a TUN read batch 2026-11-09 15:02:49 +00:00
世界 44e700375e Fix OpenVPN renegotiation and key-method interop 2026-11-09 14:52:35 +00:00
世界 758708747a Fix dialing IPv6 link-local addresses without zone 2026-11-09 14:37:27 +00:00
世界 586b48065c Fix link-local destinations rejected as TUN loopback 2026-11-09 14:37:27 +00:00
世界 e3ca1835ae Rebind interface-bound listeners when the interface is recreated 2026-11-09 13:21:41 +00:00
世界 f989700103 Fix interface binding in network namespaces 2026-11-09 13:21:41 +00:00
世界 97f996fac0 Fix Snell late writes leaking into reused sessions 2026-11-09 12:03:55 +00:00
世界 c029b35966 Drop Snell UDP responses with non-IP sources 2026-11-09 11:46:48 +00:00
世界 f82c724b3d Drop direct outbound UDP packets to unresolved domains 2026-11-09 11:38:54 +00:00
世界 ddf3d10b19 Fix disabled UDP domain unmapping ignored by direct outbound 2026-11-09 11:38:26 +00:00
世界 a5f1d8bb1a Fix ACK-only packets consuming pacing budget 2026-11-09 11:16:32 +00:00
世界 9ac9a2989e Fix Snell truncated streams and unclosed server sessions 2026-11-09 11:11:34 +00:00
世界 5127ae9011 Fix packet write byte counts in packetaddr and mux connections 2026-11-09 10:59:54 +00:00
世界 44e418a353 Fix hysteria obfs corrupting retransmitted connection close 2026-11-09 10:59:40 +00:00
世界 00b3ac9e8e Fix SOCKS UDP relay accepting datagrams from other hosts 2026-11-09 10:59:29 +00:00
世界 f6b7c85ca2 Fix UoT payload buffer leak on non-vectorised connections 2026-11-09 10:59:17 +00:00
世界 ffe1590c79 Fix Cloudflare Tunnel connections staying in one region after failover 2026-11-09 10:52:53 +00:00
世界 6a8ad09383 Fix Tailscale endpoint not rebinding after network changes 2026-11-09 10:30:02 +00:00
世界 ae58189497 Fix redirected connections hanging after auto-redirect close 2026-11-08 13:49:24 +00:00