Commit Graph
237 Commits
Author SHA1 Message Date
Shtorm 006de2feb8 merge: Merge upstream v1.14.6 2026-11-30 19:46:00 +03:00
世界 1011659782 Fix ALPN negotiation for inbounds with ACME
acme-tls/1 was stored in the server NextProtos so that TLS-ALPN-01
validation could negotiate it. With no other ALPN configured, the server
then only offered acme-tls/1 and rejected every client that sends ALPN
with no_application_protocol, and NextProtos() reported it as configured,
so protocols that set their default ALPN only on an empty list (hysteria,
hysteria2, QUIC, HTTP upgrade, naive, DERP) never did.

Negotiate acme-tls/1 only for RFC 8737 validation ClientHellos through
GetConfigForClient and leave NextProtos to the inbound. Inline ACME is now
a certificate provider like certificate_provider.
2026-11-25 21:25:46 +08:00
世界 f41c2e62ca Fix public key verification with empty certificate chain 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
世界 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
世界 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
世界 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
世界 42f487bd0d Fix IPv6 literal host handling 2026-10-23 19:57:05 +08:00
世界 42cae14c63 Fix Apple TLS engine connection leak 2026-10-23 19:57:03 +08:00
Shtorm 2283c95513 Merge tag 'v1.14.3' 2026-10-19 01:05:55 +03:00
世界 a691a44023 Refactor lifecycle to scoped cleanup 2026-10-09 12:36:03 +08:00
世界 a364ff4794 Remove unimplemented hot reload from managers 2026-10-09 12:36:03 +08:00
Shtorm aae5f7ff02 reality: Add support_x25519mlkem768 option 2026-09-20 22:01:43 +03:00
世界 60f0a0369b Fix half-close not propagating through connection wrappers 2026-09-20 22:24:38 +08:00
Shtorm c0bfc731ec Merge tag 'v1.14.0' 2026-09-04 01:08:30 +03:00
Shtorm 99bbd49406 Remove Snell and OpenVPN 2026-09-02 21:01:21 +03:00
世界 b9572e5812 Fix start lifecycle 2026-08-30 17:41:43 +08:00
世界 0a4e4c8061 boxdd: Add insecure mode 2026-08-30 17:41:43 +08:00
世界 154d74b7a0 tls: Fix read wait buffer sizing 2026-08-30 17:41:41 +08:00
世界 704853b3be Fix lint errors 2026-08-30 17:41:40 +08:00
世界 9895d60484 Fix TLS server close 2026-08-30 17:41:40 +08:00
macronutand世界 d9290bc940 Add more spoof method
Signed-off-by: macronut <4027187+macronut@users.noreply.github.com>
2026-08-30 17:41:40 +08:00
nekohasekai 9471dde765 Add Windows TLS engine 2026-08-30 17:41:40 +08:00
世界 7963713314 Add ACME profile support for IP address certificates 2026-08-30 17:41:40 +08:00
世界 a33858523f Fix tls-spoof 2026-08-30 17:41:40 +08:00
世界 9bcc0f1d37 Fix Apple TLS metadata capture 2026-08-30 17:41:40 +08:00
世界 2ddfecb47a Reject IP literal server name with TLS spoof 2026-08-30 17:41:39 +08:00
世界 40e2b5fd4b Add TLS spoof support 2026-08-30 17:41:39 +08:00
世界 2515811356 Refactor: HTTP clients, unified HTTP2/QUIC options, Apple engines 2026-08-30 17:41:39 +08:00
nekohasekai 01b3d19d6d Refactor ACME support to certificate provider 2026-08-30 17:41:38 +08:00
Shtorm 051e928b01 Update sing-box core 2026-08-06 14:09:46 +03:00
世界 1f1d6d9a87 Fix string type 2026-07-27 15:51:12 +08:00
Shtorm 6941854ce2 Fix XHTTP 2026-07-18 14:21:06 +03:00
Shtorm 9f5ccf43d4 Add SSH inbound, log level. Update MTPROXY. Fixes 2026-06-07 07:59:43 +03:00
Shtorm 195a33379d Add OpenVPN, TrustTunnel, Sudoku, inbound managers. Fixes 2026-06-04 01:47:50 +03:00
Shtorm b953954b60 Update sing-box core, refactor MASQUE, update XHTTP 2026-05-29 01:31:57 +03:00
世界 5e7fd7ad78 Fix lint errors 2026-05-13 23:39:27 +08:00
Shtorm c307b8dc2d Add MTProxy, MASQUE, VPN, Link parser. Update AmneziaWG. Remove Tunneling 2026-04-29 22:11:30 +03:00
世界 8ae93a98e5 Remove overdue deprecated features 2026-03-01 12:30:43 +08:00
世界 da06212268 Remove overdue deprecated features 2026-03-01 12:30:43 +08:00
BalthildandGitHub 60a1e4c866 Add acmedns support 2026-01-17 20:52:43 +08:00
BalthildandGitHub a456e2072f Add acmedns support 2026-01-17 20:52:43 +08:00
世界 ddec2ab282 Update dependencies 2026-01-17 05:48:15 +08:00
世界 ba49af1ce8 Update dependencies 2026-01-17 05:48:15 +08:00
世界 0585f6d065 Add ECH support for NaiveProxy outbound and tls.ech.query_server_name option
- Enable ECH for NaiveProxy outbound with DNS resolver integration
- Add query_server_name option to override domain for ECH HTTPS record queries
- Update cronet-go dependency and remove windows_386 support
2026-01-17 05:47:42 +08:00