Beta Updates
Surge Engine
Surge Engine - AI-powered Testing Platform
We have built a fully automated, AI-powered testing platform for Surge Engine. The platform continuously evaluates compatibility and performance against the latest official client implementations of all supported proxy protocols, helping ensure that Surge matches or exceeds their performance.
Going forward, every change to Surge Engine will be validated through this platform to catch compatibility issues and other bugs early, prevent performance regressions, and maintain consistent reliability across updates.
Performance
• Fixed a large number of performance issues that could occur under special configurations or environments, especially performance issues under combinations of proxy chains.
Proxy Protocol
VLESS
• New vless proxy type. It supports RAW or WebSocket transport, with no TLS, TLS or REALITY. It also supports the xtls-rprx-vision flow and the gRPC transport over TLS or REALITY.
• UDP is always sent as XUDP.
TrustTunnel
• New client-random-auth-key parameter for TrustTunnel servers v1.3.0-beta.2 and later, which can accept only clients that prove they hold a shared key. It works in both HTTP/2 and HTTP/3 mode.
• The parameter requires an SNI, and it is masked in sanitized profiles.
Profile Reload
• Changing [Proxy], [Proxy Group] or [Keystore] no longer cuts in-flight connections of SSH, HTTP/2 CONNECT, MASQUE, TUIC and Hysteria 2 policies whose own definition is unchanged. Their shared connections are now kept, as WireGuard and Tailscale sessions already were.
Faster Failures
• Wrong credentials now fail right away instead of after the 10-second setup timeout. This covers:
• HTTP and HTTPS (407 or 401)
• SOCKS5 (authentication rejected, or no acceptable method)
• Hysteria 2
• an SSH host key that does not match server-fingerprint (the error names the key the server offered)
• ShadowTLS v3
• When a server closes the connection during setup, for example TrustTunnel with a wrong key, Surge now retries once and then fails, instead of retrying until the timeout.
Fixes
• Fixed uploads through SSH policies getting corrupted after the session rekeyed, which happens after 1 GB.
• Fixed SSH servers dropping the whole session, and every tunnel on it, after Surge closed a channel twice.
• Fixed several MASQUE issues with Envoy:
• The first packet to each new UDP destination was lost.
• UDP to new destinations failed once about 100 were open on one connection.
• 1,200-byte UDP replies were dropped.
• MASQUE now sends 1,350-byte QUIC packets, so it cannot connect over paths whose MTU is below 1,378 (IPv4) or 1,398 (IPv6).
• Fixed killing one HTTP/3 stream sometimes closing the whole HTTP/3 session, along with every tunnel on it (MASQUE, TrustTunnel with h3=true).
• Fixed half-closed connections losing data. Examples are a client that sends a request, shuts down its sending side and then waits for the reply, or a server that finishes first:
• Fixed AnyTLS streams staying open for 60 seconds after the client finished sending.
• Fixed $httpClient requests over AnyTLS recording a negative upload, shown as 18446744.07 TB in traffic statistics.
• Fixed idle TUIC connections closing after about 15 seconds with servers that announce a 15-second idle timeout. Surge's keep-alive is now at most half the negotiated idle timeout.
• Fixed Shadowsocks 2022 silently dropping received UDP datagrams larger than 1,500 bytes. Full-size replies of WireGuard over Shadowsocks were all lost.
• Fixed TCP never connecting through WireGuard chained over a UDP relay, such as Shadowsocks or SOCKS5, while UDP worked. Surge now lowers the inner TCP MSS to fit the extra encapsulation.
• Fixed UDP over AnyTLS, Trojan and VLESS queuing without limit when the sender was faster than the connection, which could use gigabytes of memory. Datagrams are now dropped while the connection is congested.
• Fixed bursts of incoming connections being reset during the handshake, for example 200 SOCKS5 connections at once. This affected the HTTP and SOCKS5 proxy services, the HTTP API, the controller, the Snell server and port forwarding.
• Fixed HTTP/2 trailers being treated as a malformed response, and buffered data being lost when a stream was reset with NO_ERROR after it had ended.
Surge iOS
Improvements
• Surge now sends a notification whenever iOS stops the VPN for any reason other than you stopping it. Before, it only did so when the VPN configuration was disabled.
• The Home tab style None is back. With None there is no Home tab, and the Configure page's header starts and stops Surge.
• The proxy editor has a new field for TrustTunnel's client random auth key.
Fixes
• Fixed a policy group card going missing, and cards no longer responding to taps, after swiping categories while a card's menu was still closing.
• Fixed a module turning on or off by itself when you swiped while a row's menu was still closing.
• Fixed a swipe doing nothing on the Configure page while the page was settling back after a short swipe.
• Fixed the expanded policy group card's tiles and scroll indicator sticking out past its rounded corners.
• Fixed the Configure page keeping the previous start switch style's header until relaunch.
• Traffic statistics that were already stored as negative values (from the AnyTLS bug) are now shown as zero.