Commit Graph
2941 Commits
Author SHA1 Message Date
世界 f41c2e62ca Fix public key verification with empty certificate chain 2026-11-24 22:45:19 +08:00
世界 d553a29433 Fix DNS reverse mapping pollution and ECH public name matching 2026-11-24 22:45:19 +08:00
世界 0cdfc45e26 Fix ECH client cache sharing, retry and protocol wiring 2026-11-24 22:45:19 +08:00
世界 f0fbf236f8 Fix data race between rule-set updates and matching 2026-11-19 02:25:30 +00:00
世界 a17bc0ff4e Fix Fortinet login failures starting SAML 2026-11-19 02:12:42 +00:00
世界 e027a77e6f Fix systemd-resolved D-Bus connection lifecycle 2026-11-19 02:10:33 +00:00
世界 f4e75a44e1 Fix cronet-go build with Go 1.27.4 2026-11-18 11:23:37 +00:00
世界 b449501f1f Fix auto-redirect not hijacking DNS from link-local sources 2026-11-17 04:42:48 +00:00
世界 b61ad737e8 Fix v2ray-plugin mux reads into short buffers 2026-11-16 16:49:29 +00:00
世界 7c4ea11299 Fix auto-redirect routing replies of tun flows out directly 2026-11-16 07:03:21 +00:00
世界 a9c5944e05 Fix auto-redirect not capturing traffic marked by other programs 2026-11-16 07:03:21 +00:00
世界 9d3a1825d5 Fetch ECH config from DNS for QUIC
QUIC clients took the standard TLS config directly, so with ECH enabled
and no static config, hysteria, hysteria2, tuic and DNS over QUIC never
queried the ECH config list and sent the real server name in the clear
without reporting an error. Query it before the QUIC handshake as the
TCP path does.
2026-11-16 06:50:44 +00:00
世界 961b56b176 Use domain resolver for ECH config queries
When ECH is enabled without a static config, the HTTPS record query for
the ECH config list went through the DNS rules instead of the domain
resolver, and the migration of outbound DNS rule items to the domain
resolver left no way to select a DNS server for it. A rule rejecting
HTTPS records refused the query, and a default DNS server detoured
through the same outbound waited for its own connection until the query
timed out.

Send the query to the domain resolver of the dial fields, then the
default domain resolver, then the only DNS server, and fail it when
none of them is available. DNS servers must set their own domain
resolver for it, as they do for a domain server address.
2026-11-16 06:50:44 +00:00
世界 9e27f3413b Fix unbounded ICMP sockets in direct outbound
The direct outbound opens one ICMP socket for each echo flow. The
sockets were kept for one minute after the last packet and their
number was not limited, so scanning hosts through the outbound could
accumulate an unbounded number of sockets, which has been reported to
panic the kernel on macOS.

Close idle flows after ICMPTimeout as the stacks do, and keep at most
1024 flows, closing a least recently active one when the limit is
reached.
2026-11-16 06:46:49 +00:00
世界 56bf27b23d Fix auto-redirect on older Linux kernels 2026-11-14 08:20:00 +00:00
世界 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