Commit Graph
2971 Commits
Author SHA1 Message Date
世界 ef408a1e10 Fix vless and trojan crash when TLS is disabled 2026-11-25 21:25:46 +08:00
世界 d31a43ff31 Fix OOM killer not resetting again after a reset leaves memory above armed 2026-11-25 21:25:46 +08:00
世界 7a0448f3f4 Fix TCP keep-alive ignored on TFO connections 2026-11-25 21:25:46 +08:00
世界 e012b57212 Fix h2mux client deadlock with Go 1.27 HTTP/2 wrapper 2026-11-25 21:25:46 +08:00
世界 8a1ddcebd3 Bound SOCKS and HTTP outbound handshakes by timeout 2026-11-25 21:25:12 +08:00
世界 c7f675a68b Apply handshake timeout to ShadowTLS v3 standard TLS handshake 2026-11-25 21:25:12 +08:00
世界 27c872d81f Bound httpupgrade and websocket upgrade handshakes by context and timeout 2026-11-25 21:25:12 +08:00
世界 19478a1bfb Fix early websocket conn declaring lazy headroom 2026-11-25 21:25:12 +08:00
世界 9d5f442361 Fix websocket frames split by concurrent control frames 2026-11-25 21:25:12 +08:00
世界 5ac9b57f2c Fix HTTP inbounds aborting connections after error responses 2026-11-25 21:25:12 +08:00
世界 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