Commit Graph
2961 Commits
Author SHA1 Message Date
世界 46acf61419 Wrap HTTP/2 errors in v2rayhttp server writes 2026-11-25 21:25:12 +08:00
世界 b126cbe02c Fix repeated close of HTTP/2 response bodies 2026-11-25 21:25:12 +08:00
世界 1bc8801ab6 Fix unused field lint in v2rayhttp force close 2026-11-25 20:19:05 +08:00
世界 fde8bf9249 Release cache database writer lock when rollback panics 2026-11-24 22:45:30 +08:00
世界 b7faa4a5d4 Fix xudp unexpected frame error reading wrong byte 2026-11-24 22:45:28 +08:00
世界 e4573eb179 Hand raw sockets to quic-go on obfuscated servers 2026-11-24 22:45:27 +08:00
世界 7dc9c39a27 Align tun auto-redirect DNS hijack and default marks with sing-tun 2026-11-24 22:45:25 +08:00
世界 eacdf91f16 Fix DNS response truncation sharing records and background refresh polluting cache 2026-11-24 22:45:25 +08:00
世界 298d6b7e36 Fix DHCP DNS state leaking across networks and sticking on transient failures 2026-11-24 22:45:25 +08:00
世界 66502b6206 Remove dnsinfo and pass physical interface to Darwin mDNSResponder 2026-11-24 22:45:25 +08:00
世界 f365a5ac99 Remove dead sing-ffi Makefile targets 2026-11-24 22:45:23 +08:00
世界 ef3c5a4f0a Fix listener interface follow race and oversized UDP write errors 2026-11-24 22:45:23 +08:00
世界 929eb38cc8 Accept SOCKS UDP associate datagrams from any host 2026-11-24 22:45:23 +08:00
世界 cb3b7a7c4b Fix kTLS read waiter disconnecting on TLS 1.3 session tickets 2026-11-24 22:45:20 +08:00
世界 0964977b76 Fix FakeIP store validation, reset locking and reverse entry cleanup 2026-11-24 22:45:20 +08:00
世界 c95deb2ee8 Fix rule-set startup ordering and close races 2026-11-24 22:45:20 +08:00
世界 4913f787fb Fix endpoint lifecycle ordering and device reconfiguration 2026-11-24 22:45:20 +08:00
世界 37fffa325b Fix URLTest selection and idle connection references 2026-11-24 22:45:20 +08:00
世界 70e4310bfa Fix network strategy falling back to other interfaces on address family failures 2026-11-24 22:45:20 +08:00
世界 3b4ea5cc83 Fix CGO write barrier crash in Darwin certificate anchors 2026-11-24 22:45:19 +08:00
世界 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