Surge Knowledge Base
English
Ask or search…
K
Comment on page

Surge iOS Release Notes

Version 5.8.1

Rule Engine Optimizations

  • The implementation of RULE-SET and DOMAIN-SET has been completely rewritten. Now, Surge automatically preprocesses and indexes rule sets during resource updates, significantly increasing the matching speed.
    1. 1.
      There is no longer any difference in performance and memory usage between RULE-SET and DOMAIN-SET types of rule sets, allowing flexible usage.
    2. 2.
      There is no longer a restriction in DOMAIN-SET rule sets that prevents the use of eTLDs.
    3. 3.
      The matching speed for DOMAIN, DOMAIN-SUFFIX, IP-CIDR, and IP-CIDR6 rules in RULE-SET has been greatly improved.
    4. 4.
      A DOMAIN/DOMAIN-SUFFIX rule set with approximately 100,000 entries used to take 100ms for a single match in the old version; now, it only takes single-digit ms.
    5. 5.
      An IP-CIDR rule set with approximately 10,000 entries used to take about 0.1ms for a single match in the old version. The new version only needs 0.0002ms, an improvement of about 500 times. The performance improvement for IP-CIDR6 rules is even greater.
  • Main ruleset matching efficiency has been slightly optimized.
  • The efficiency of IP-CIDR6 rules has been significantly improved even in non-indexed situations.
  • RULE-SET rules can now be configured directly with parameters no-resolve and extended-matching, which are equivalent to configuring all sub-rules with these parameters.
  • DOMAIN-SET rule sets also support configuration with extended-matching.

Minor Optimizations

  • Now, when performing MITM, the certificate used for signing will be sent to the client together, to support using intermediate certificates for MITM.
  • All comments (at the beginning and end of lines) can now use #, //, ; three common comment symbols.
  • Profile error message prompt optimization, now it can give the exact line number where the error occurred more accurately.
  • Fixed an issue that BSSID related matching rules might fail.
  • Optimize Surge Ponte error handling process, correct the issue where device information is not automatically updated under certain errors.
  • Bug fixes.

Version 5.8.0

New Features

  • New Inky icon
  • Protocol sniffing
    Requests to port 80 and 443 will wait for the client to send the first packet, then extract the SNI and other information for the rule system to judge.
    • DOMAIN, DOMAIN-SUFFIX, DOMAIN-KEYWORD rules add an optional parameter called extended-matching. When this parameter is enabled, the rule will try to match both the SNI and the HTTP Host Header (or :authority).
    • Added a parameter called always-raw-tcp-hosts, used to forcibly turn off active protocol detection for specific hostnames.
  • New proxy protocol support: Hysteria 2
    Hysteria 2 is a proxy protocol optimized for unstable and packet-loss-prone network environments, based on UDP/QUIC.
  • Automatic QUIC blocking
    Since most proxy protocols are not suitable for forwarding QUIC traffic, Surge will now automatically block QUIC traffic to make it fallback to HTTPS/TCP protocol, ensuring performance. For QUIC traffic that hits the MITM hostname, it will also be automatically rejected.
  • ECN (Explicit Congestion Notification) support for QUIC-based protocols
    Significantly improved the performance of the Vector(Surge Ponte)/TUIC/Hysteria 2 protocol.

Optimizations

  • Reworked HTTP capture functionality
    • The related settings are no longer stored in the configuration, the [Replica] section has been deprecated.
    • Added an automatic shut-off setting after turning on the capture switch, which can automatically stop capturing based on time, size, or the number of requests.
    • Added automatic activation of MITM after turning on the capture switch, which can be additionally turned on for specific hostnames. (Even if the main MITM switch is off).
    • Added an option to only save HTTP/HTTPS requests after turning on the capture switch.
  • VIF performance optimization, tested to achieve full speed of a 2.5Gbps wired network card on iPhone 15 Pro with VIF taking over a single thread. (Proxy mode performs even better)
  • Wi-Fi Assist and Hybrid features will only take effect after the device is unlocked, to avoid unnecessary power and data consumption.
  • From this version on, the size of external resources is limited to no more than 10MB to prevent excessive memory usage caused by abnormal external resources. (Except for domain-set)
  • The parameters udp-policy-not-supported-behaviour, include-apns, include-cellular-services have been added to the UI settings.
  • Improved compatibility with some non-standard protocols.
  • When testing the Ponte policy, the test URL has been changed from proxy-test-url to internet-test-url.
  • Following the WireGuard protocol standard recommendation, WireGuard handshake packets will now be tagged with 0x88 (AF41) DSCP to increase the success rate.
  • When forwarding UDP packets via WireGuard, it supports retaining the TOS(DSCP/ECN) tag of packets inside the tunnel.
  • Based on the WireGuard protocol standard recommendation, Surge will copy the ECN tag from packets inside the tunnel to packets outside. When receiving packets with an ECN tag, they will be strictly merged according to RFC6040. (ecn=true must be set for the policy).
  • UDP NAT can close the UDP session early based on ICMP messages.
  • Improved PMTU support for QUIC.

Bug Fixes

  • Fixed the issue where the external resources of rule sets needed to be reloaded to take effect after updates.
  • After a network switch, it will forcefully break the original long connection of DoH/DoQ/DoH3 to avoid obtaining results that are not suitable for the current network environment.
  • Fixed the issue where invalid certificates might cause the key store interface to crash.
  • Fixed the issue where the Ponte device option in the policy group page might not display text.
  • When performing MITM on HTTPS requests that directly connect using an IP address, the IP address should not be sent as SNI, as this might cause compatibility issues.
  • Other bug fixes.

Version 5.7.0

New Features

  • Surge tvOS is now available. All users who have purchased Surge iOS can use it directly without any additional purchase.
  • Supports interactive widgets for iOS 17.
  • Added full-text search support for HTTP request's header and body.
  • Web Dashboard updated to version 2.0.
  • Inline Ruleset, allowing the Ruleset to be written directly in the main profile.

Minor Improvments

  • Optimized the script logging system, ensuring that script logs in request logs do not display content from other sessions during concurrent execution.
  • Separated the open and close shortcut actions for iOS 17. For users of the iOS 17 version, please use actions with the (iOS 17) suffix.
  • Removed the Wi-Fi Assist notification.
  • When using UI to edit policy groups, you can now select Ponte devices.
  • When creating temporary rules for remote devices, Ponte devices can be selected.
  • Remote controllers support viewing and updating external resources of remote devices, compatible with Surge Mac and Surge tvOS.
  • Icons for Ponte devices now display the device type.
  • Improved details related to accessibility.
  • Improved some UI details.

Bug Fixes

  • Fixed some potential issues when editing the MITM Hostname list.
  • Fixed an issue where, when creating rules for remote devices, the policy options might be local policies instead of remote policies.
  • Fixed an issue where, when using iCloud sync, the local module selection might be deselected if the cache was cleared.
  • Fixed an issue where switching to Dropbox sync was not possible.
  • Fixed a problem where some card backgrounds were incomplete when expanded.
  • Fixed an issue where modules added via Basic Auth URL could not auto-update.
  • Fixed a problem in quick switch mode where, after switching from an IPv6 network to a non-IPv6 network, the v6-vif didn't correctly auto-turn off when set to auto.

Version 5.6.0

Enhancements

  • Comprehensive optimization of the request list page
  • Ponte device sharing can now be initiated and managed directly on iOS
  • The name of the source device will be displayed when viewing external requests
  • Detached profile supports using as a keyword to refer to content in enterprise profile
  • Profile list added Create Linked Profile option for quick creation of detached profile
  • Changed the logic of accessing the data protection area, now Surge can be properly activated in the locked screen state. (Except after rebooting)
  • Will prompt when a CA certificate expiration is detected
  • Single request exported .zip files support import back into Surge iOS, and will be displayed in the favorite requests
  • Performance optimization

Problem Fixes

  • Fixed the issue that in the same round of policy testing, if different test URLs are mixed, the HTTP Header constructed in the secondary test may be incorrect, leading to abnormal test results
  • Fixed the issue that the Panel refresh may not be executed correctly after the main program is opened from the background
  • Fixed the issue that the policy group title options under the list policy group view may not update in time
  • Fixed the issue that using the DIRECT strategy as underlying proxy might cause UDP failure
  • Fixed the issue that when using the SSH protocol, if the server side is configured with a banner, it cannot handshake properly
  • Fixed some issues that may occur under the Lucid theme on iPad
  • Fixed the issue that SSID related functions may not work correctly in some cases
  • Fixed some problems that may occur when using TUIC v5 as underlying-proxy
  • Fixed the issue that when directly using IPv6 address as vmess hostname, if WebSocket is enabled, the WebSocket request cannot be correctly constructed
  • Fixed the issue that the use of certain invalid data in the DOMAIN-SET rule may cause a crash
  • Fixed the crash that may be caused by profile errors
  • Fixed the issue that the returned data of the replayed request cannot be viewed if there is compression
  • Fixed the issue that the device list cannot be loaded when there is only a shared Ponte device
  • Fixed some crashes that may occur with DNS over HTTP3
  • Fixed the issue that when Surge Ponte is in a subnet CIDR not a multiple of 8, it will judge incorrectly leading to non-use of LAN direct connection
  • Fixed some problems that may occur when using Surge Ponte
  • Optimized the logic of re-establishing the main connection after network switching in TUIC/Ponte

Version 5.5.1

Remote Controller

  • Supports adding and modifying temporary rules remotely.
  • The device management now groups devices by active and non-active devices. (whether there is a request)
  • Supports directly adding temporary or permanent rules for devices.
  • Other detail optimizations.

Others

  • Added support for TUIC v5 protocol.
  • The policy group menu adds the option to display hidden groups.
  • In traffic statistics, the subdomains of apple.com will be processed separately, facilitating the observation of the traffic consumption of system services.
  • After external resources are updated, now only the update of the policy group will cause the group page to reload, other types will no longer cause the group page to reload.
  • Optimized the performance of Surge Ponte/TUIC.
  • Optimized the request Note recording when the strategy group is abnormal.
  • Fixed the problem that connection reuse was not done correctly under MITM H2 mode.
  • Fixed the problem that the request of $httpClient/DoH may sometimes be accidentally cancelled.
  • Other bug fixes.

Version 5.5.0

Interface

  • New UI theme Lucid, derived from the design language of Surge Mac 5. (Feature Subscription required)
  • Remote control device management supports remote modification of device icons. (Surge Mac needs to be updated to version 5.1.0)

Surge Ponte

  • Surge Ponte supports cross-iCloud account sharing. (Surge Mac needs to be updated to version 5.1.0)
  • Fixed issues that might occur when accessing HTTP/1.0 servers via Surge Ponte or TUIC protocol. (e.g. ASUS router management page)
  • Supports ShadowTLS v3. (Feature Subscription required)
  • New feature: Adaptive TLS Fingerprint, see the manual for details.
  • Fixed an issue that the reuse feature could not work properly under Snell V4.
  • SSH protocol now supports server public key fingerprint pinning, see the manual for usage.
  • Added UDP forwarding support for VMess protocol.

Scripts

  • $httpClient supports binary mode.
    • The body of the request supports TypedArray.
    • Passing in binary-mode: true in the request parameters allows the return result to be returned as TypedArray.
  • Fixed the problem that http-request type scripts could not use binary data directly as response.

Others

  • Policy group adds parameter external-policy-modifier, which can be used to adjust external policies.
  • Optimized the request log system
    • Added category marks to the logs.
    • Rule system adds more output for DNS and rulesets.
  • Swipe right on temporary rules to write the rules into permanent rules.
  • Other bug fixes and optimizations.

Version 5.4.0

Surge Ponte

Surge Ponte is a private mesh network between your devices running Surge Mac & iOS.
  • Zero configuration required
  • Surge automatically chooses the most appropriate channel to establish connections.
  • Always end-to-end encryption.
  • The device information and encryption keys are synchronized via your iCloud, and none of your data passes through third-party servers, except the proxy server if you choose.
Surge Ponte needs to be used with Surge Mac 5.
  • Significantly optimized handshake-related logic.
  • WireGuard's Client ID supports UI configuration and adds support for 0xabcdef and 6-character base64 formats.

Other updates

  • Redesigned the network diagnostics page and optimized the information display.
  • Optimized peak bandwidth performance and CPU usage for QUIC.
  • Requests matched by the REJECT rule will be marked as Rejected and distinguished by gray, no longer classified as Failed.
  • Optimized the switch control logic for various functions to avoid accidentally turning off/on a function in some cases.
  • When using MITM, prioritize using the client-reported SNI to generate certificates and use the accessed domain name when SNI is not reported.
  • Increased the wake-up speed of executing Surge scripts via shortcuts when Surge is not enabled.
  • Changed the display of SOCKS5 proxy request type to TCP. You may confirm in Notes that it was taken over by SOCKS5 proxy.
  • Support for configuring DNS over QUIC/H3 for specific domain names in [Host].
  • Introduced the FAILED built-in policy for marking request failures in special cases (e.g., policy group cannot be loaded) instead of using REJECT.
  • Fixed an issue where rules would not match if the client accidentally sent a domain name with uppercase letters during rule matching.
  • Fixed a problem where policy group decisions would fail if multiple external policy groups used the same name for policies with different actual content.
  • DNS Local Mapping allows configuring multiple IPs for a domain name to be used concurrently.
  • Other issues fixed.
Please note that starting with iOS 16.4, the system no longer allows reading the MCC/MNC of cellular networks. Related functions may become invalid.

Version 5.3.1 (Feb 16, 2023)

  • The installed modules are now synced between iOS devices via iCloud.
  • Support for customizing the reserved bits of WireGuard, also known as the client ID or routing ID.
  • Improved WireGuard handshake logic.
  • Fixed some UDP forwarding problems.
  • Fixed some text editor issues.

Version 5.3.0 (Feb 3, 2023)

New Subscription Feature: Temporary Rules

We have added the temporary rules feature in Surge Mac to the iOS version. Temporary rules will automatically disappear after Surge is stopped and will not be written to the profile for some temporary usage scenarios.

New subscription feature: Whois lookup

Quickly perform a Whois lookup to identify the domain or IP owner in the request details menu.

New feature: Proxy Detail View

Traffic statistics have been enhanced

  • In addition to traffic statistics, the number of requests will now be recorded as well.
  • In addition to this month's data, last month's data will also be kept.

Bug fixes and minor improvements

  • JSON and text viewers support search on iOS 16
  • Network switching no longer interrupts in-progress $httpClient requests.
  • Fixed an issue where scripted requests would sometimes accidentally carry the x-surge header handled internally by Surge
  • Fixed an issue that some requests constructed in a special way could not be matched by MITM hostnames.
  • Fixed an issue that the LAN proxy and Dashboard may not be accessible if the fast-switch is configured.
  • Fixed an issue that could occur when using the expanded card layout on iPad
  • Fixed an issue that the Panel button is not showing on iOS 14.

Version 5.2.2 (Dec 3, 2022)

New Feature

  • Gaming Optimization. Enabling it will prioritize UDP packets when the system load is very high, and packet processing is delayed.
  • SOCKS5 proxy now supports UDP forwarding, as the server side does not consistently support UDP forwarding, the parameter udp-relay=true needs to be explicitly configured.

Minor Improvements

  • URL regular expressions for Script, Rewrite, Mock, etc. will try to match URLs constructed in many different ways (e.g. Host field in Header) to solve the problem that some apps use custom DNS logic to request directly to IP addresses.
  • Removed the silencing mechanism after UDP forwarding errors to avoid extra waiting time after switching networks.
  • Added a workaround for suspend and subnet settings that may occur when the SSID is temporarily not available under iOS 16.
  • The log view supports freezing now.
  • The IPv6 switch no longer prevents direct access to IPv6 addresses when turned off. The switch is now limited to controlling whether the DNS Client requests AAAA records.
  • Automatic disabling of AAAA queries due to DNS issues will be prompted in the Event Center instead of just in the logs.
  • Fixed handling issue of generating IPv6 fragmentation when forwarding IPv6 UDP packets via WireGuard.
  • The external policy group will skip the line and continue processing when it encounters invalid content instead of returning an error directly.
  • Adjusted the buffering mechanism of raw TCP forwarding to avoid conflicts with some apps.
  • Fixed REJECT requests not being marked as failed under MITM H2.
  • Adjusted the output text under diagnostics.
  • Other bug fixes.

Version 5.2.0 (Nov 11, 2022)

Support New Proxy Protocol

  • Snell V4
  • TUIC
  • Shadow TLS
See the online manual for more information.

Other Improvements

  • A new expanded card style for the Policy Group view.
  • Refined the Route Table view.
  • shadowsocks now supports the none cipher.
  • Modified the handshake packet construction logic when forwarding HTTPS requests to proxies, which can slightly optimize latency.
  • Surge HTTP requests for proxy testing no longer contain a User-Agent header.

Bug fixes

  • Fixed an issue that when using Subnet Suspend, the switch in the interface did not display the status correctly.
  • Fixed an issue that the module could not configure the MITM h2 parameter.
  • Fixed some keyboard-related layout problems.
  • Fixed an issue that may not work properly when nesting proxy chains with a specific protocol combination.
  • Fixed an issue where UI jumping may occur when starting Surge if iCloud Drive is used.
  • Fixed a memory leak that could occur when HTTP capturing is enabled.

Version 5.1.3 (Sep 29, 2022)

  • Added a delayed update mode to the view of the recent request, which will automatically start when too many requests are received, to avoid the Surge main application from getting jammed.
  • Optimized the check logic of ICMP traffic limit to avoid the alarm triggered by high concurrency in a very short period.
  • Added a lock screen widget that can be used to quickly open Surge.
  • Added a view to examine the modified profile after modules are applied.
  • Added a new Siri action: enable or disable modules, which can be used with Shortcut.

Version 5.1.0 (Sep 11, 2022)

IPv6 Improvements

  • Support UDP forwarding with IPv6 VIF, including local and proxy forwarding.
  • Support ICMPv6 local forwarding with IPv6 VIF.
  • Fixed an issue that IPv6 address could not be used when using Surge Private DDNS.
  • IPv6 handling details refined.

WireGuard IPv6 Tunneling

  • WireGuard policy now supports IPv6 Tunneling (the previous version already supports connecting to an endpoint with IPv6, this version adds IPv6 support inside the tunnel)
  • Read the manual for more information.

Text Editor

  • A toolbar was added to the text editor.
  • Fixed a crash in text editing.
  • You can search text in the text editor now.

Other updates

  • Optimize the proxy failure handling policy. Now when the TCP handshake time to the proxy server is greater than the test-timeout parameter, it is directly determined as failure in order to trigger the policy group to retest faster.
  • TabBar shortcut menu added module shortcut opening and closing.
  • External resources view allows side-swipe to edit local resources file.
  • All types of scripts that use $httpClient to initiate requests are now viewable in the view of the recent request.
  • Adjusted script concurrency limit policy to avoid deadlock when multiple scripts refer to each other.
  • Other minor bug fixes and improvements.

Version 5.0.2 (Aug 19, 2022)

  • Fixed a bug that the text editor may be unable to save content.

Version 5.0.1 (Aug 17, 2022)

  • You may now flush the DNS cache in the DNS result view.
  • Improved the script editor and log viewer.
  • Other bug fixes and minor improvements.

Version 5.0.0 (Aug 10, 2022)

Surge 5.0 comes with a brand new UI design, including a brand new policy group selection view, a new Start tab, and a new icon.
And now, you can try all the features for free for seven days before you purchase.

New Features:

  • DNS over QUIC and DNS over HTTP3 support
  • Real-Time View: Show live speed or request list floating window when using other applications.
  • Subnet Setting: Override global settings under specified networks.

Minor updates:

  • Comprehensive UI improvements.
  • New contextual menu in the tab bar items.
  • Fixed a bug that encrypted-dns-skip-cert-verification may not work
  • MITM hostname and force-http-engine-hosts now support keywords: <ip-address>, <ipv4-address>, and <ipv6-address>.
  • Script added function $utils.ipasn(ipAddress:<String>) to lookup ASN.
  • Script added function $utils.ipaso(ipAddress:<String>) to lookup ASO
  • Script added function $utils.ungzip(ipAddres:<Uint8Array>) for gzip decompression.
  • Bug fixes.

Version 4.15.0 (Jun 30, 2022)

MITM over HTTP/2

  • Surge now supports performing MITM with HTTP/2 protocol to improve concurrent performance.
  • Surge now supports performing MITM on WebSocket connections.

Others

  • You may use doh-skip-cert-verification=true to disable server certificate verification for DNS-over-HTTPS.
  • Bug fixes.

Version 4.14.0 (Jun 1, 2022)

SSH Proxy Support

  • You can use SSH protocol as a proxy protocol. The feature is equivalent to the ssh -D command.
  • Both password and public key authentications are supported.
  • All the four types of private keys, RSA/ECDSA/ED25519/DSA, are supported.
  • Surge only supports curve25519-sha256 as the kex algorithm and aes128-gcm as the encryption algorithm. The SSH server must use OpenSSH v7.3 or above. (It should not be a problem since OpenSSH 7.3 was released in 2016.)

Keystore

  • You may now save sensitive keystore items to the system keychain.
  • You may now configure TLS client certificate authentication with the UI.
  • You may use a keystore item as the CA certificate for MITM.

Others

  • New rule type: IP-ASN. You may use the rule to match the autonomous system number of the remote address.
  • The request details now include the ASN and ASO information of remote IP addresses.
  • You can now enable/disable the rewrite rules and DNS local mapping items.
  • The preview of SVG images is removed. You can use the new Web View to see the SVG image.
  • Bug fixes.

Version 4.13.0 (Apr 24, 2022)

HTTP Capture

  • You can now export HTTP/HTTPS requests to a HAR file, which is a standard format and can be opened by many web analysis tools
  • The image viewer now supports SVG format.

Proxy

  • New parameter server-cert-fingerprint-sha256 for TLS proxy policies. Use a pinned server certificate instead of the standard X.509 validation.
  • tls-engine option is now deprecated. OpenSSL is now the only TLS engine.
  • You can now use a full profile as the external policy group (policy-path). All proxies in the [Proxy] section will be used.

MITM

  • You can export the CA certificate to a P12 or PEM file.
  • Fixed an issue that the CA certificate can’t be installed if the default browser isn’t Safari.

Header Rewrite

  • Header rewrite now supports using the regex to replace the value.
  • Header rewrite now supports modifying the response headers. Scripting
  • The default timeout of $httpClient is now 5 seconds and you may override it with the timeout parameter.
  • You can manage the data of $persistentStore with the UI now.
  • You may edit the argument with UI now.

Remote Controller

  • You may sort and search in the remote device list.

Version 4.12.0 (Mar 18, 2022)

New Feature: Personal Hotspot Proxy Access

  • When using an iPhone/iPad as a hotspot, an HTTP or SOCKS5 proxy can be used on the client device to take over the traffic using Surge iOS.
  • The proxy IP to be configured on the client is shown in the More Settings and the port number is the same as the WiFi proxy service.

New Feature: Hybrid Network

  • Instead of setting up connections with cellular data when the Wi-Fi network is poor, always set up connections with Wi-Fi and cellular data simultaneously.
  • This feature can improve the network experience significantly on poor Wi-Fi or when the Wi-Fi network is switching.

WireGuard

  • WireGuard supports multiple peers.
  • The allowed-ips now support multiple IP ranges.
  • WireGuard supports preshared-key and keepalive.
  • WireGuard supports peers with IPv6 endpoints. (But still no IPv6 tunnel support)
  • WireGuard now supports underlying-proxy.
  • The raw TCP connections are now relayed on the L3 layer if no high-level features are used.

Detached Profile

  • You can now include multiple detached profiles in one section. But the section will be marked read-only and can't be edited with UI.
#!include A.dconf, B.dconf

Policy Group

  • You can now temporarily override an auto test group or an SSID group's optimal option, until Surge restart or reload.
  • The new parameter include-all-proxies=true is added to the policy group, which will include all proxy policies defined in the [Proxy] section, and can be used with the policy-regex-filter parameter for filtering.
  • The new parameter include-other-group="group1,group2" is added to include policies from another policy group, and can include multiple policy groups separated by commas, also can be used with the policy-regex-filter parameter for filtering.
  • include-all-proxies, include-other-group, and policy-path parameters are allowed to be used in a single policy group at the same time. The policy-regex-filter parameter applies to all three.
  • There is an order of precedence among the policy groups for the include-other-group parameter, but there is no order of precedence among the include-all-proxies, include-other-group, and policy-path parameters. For scenarios where the order of sub-policies makes sense (e.g., fallback groups), use policy groups nesting with include-other-group.

Subnet expression

  • SSID Group is now upgraded to Subnet Group, which supports subnet expression.
  • SSID Setting now supports subnet expression.
  • The SUBNET rule now supports subnet expression.
  • The [SSID Setting] can control the TCP Fast Open behavior now. Read the manual for more information.
  • The [SSID Setting] can control the Wi-Fi assist and Hybrid Network behavior now. Read the manual for more information.

Proxy Protocol

  • The Trojan protocol now supports using WebSocket as the transport layer.
  • Shadowsocks protocol now supports underlying-proxy for UDP relay.
  • You may configure the UDP testing endpoint for proxies. e.g., proxy-test-udp = [email protected]
  • You may benchmark a single proxy by long press on the proxy cell.

Module

  • New Official Module: Block HTTP3/QUIC
  • Surge will check updates for installed modules automatically.

Others

  • Performance improvements.
  • OpenSSL is now the default TLS engine.
  • The managed profile can be opened with the text editor now.
  • The default timeout of $httpClient is 5 seconds now.
  • Reduced the app package size.
  • You need to perform a one-time Dropbox re-authorization if you are using Dropbox syncing.
  • Modules allow modifying the skip-server-cert-verify and tcp-connection parameters of [MITM].
  • The client will get an ICMP connection refused message instead of TCP RST if a REJECT policy matches.
  • Supports IPv6 addresses with scope ID.
  • The Network diagnostics can test proxy UDP relay now.
  • Bug fixes.

Version 4.11.1 (Jan 27, 2022)

  • You may edit the profile in the text mode without changing the current profile now.
  • The REJECT policy now can evolve to REJECT-DROP policy for UDP traffics.
  • Bug fixes.

Version 4.11.0 (Jan 21, 2022)

Proxy Protocol Upgrades:

  • WireGuard: Uses Surge as a WireGuard client, converting L3 VPN as an outbound proxy policy.
  • Snell V3: Snell protocol now supports UDP relay.
  • Trojan protocol now supports UDP relay. (No additional parameter required)
  • VMess protocol supports VMessAEAD. (Policy parameter: vmess-aead = true)

Improvements:

  • The underlying proxy (aka proxy chains) now supports using a policy group.
  • New parameter: udp-policy-not-supported-behaviour. To control the fallback behavior when UDP traffic matches a policy that doesn't support UDP relay.
  • You may acquire the request's headers within an http-response script via $request.headers.
  • Performance optimization.
  • Bug fixes.

Version 4.10.0 (Dec 3, 2021)

  • You may extend your Surge iOS Pro license to 6 devices for free. You may find the guidance in the License Management view.

New Features

  • Sorting option in the request list.
  • Supports remote rule editing for the remote controller.
  • Added the effective order adjustment view for the module. You can now adjust the effective order of the module.
  • Supports custom the policy IP TOS field. Example: test-policy = direct, tos=0xb8.

Other Improvements

  • UI details refined.
  • Performance improvements.
  • The network changed notification message will display the data network operator. If network automatic switching is enabled, you can use the notification to confirm the current carrier.
  • The URL query part of the HTTP request is no longer displayed in the request list. It is now displayed in the details view.
  • Fixed the problem that the JavaScript script timeout mechanism might not work properly.
  • Fixed an issue that could occur when a load-balance group contains another group.
  • Removed the "All" option from traffic statistics, as it took too long to count all historical traffic when the feature had not been used for a long time.
  • You may remove devices in DDNS and Cloud Notification views.

Version 4.9.4 (Oct 28, 2021)

Bug fixes

Version 4.9.3 (Sep 30, 2021)

  • New feature: Information Panel. Read the manual for more info: https://manual.nssurge.com/others/panel.html
  • The profile now supports the profile version remark. Read the manual for more info: https://manual.nssurge.com/release-note/profile-version.html
  • The HTTP scripts now support binary mode to modify the request/response body.
  • Other minor improvements and bug fixes.

Version 4.9.2 (Sep 3, 2021)

Bug fixes

Version 4.9.1 (Aug 24, 2021)

Bug fixes

Version 4.9.0 (Aug 20, 2021)

New Features: Surge Private DDNS

Surge Mac can associate its external IP address to .sgddns hostname. You may use the hostname with Surge iOS or Surge Mac on another device. The data is synced via iCloud, and the hostname can't be used publicly.

New Features: Egress Control (No UI Settings Currently)

  • You can use the new internal policy HYBRID to make requests to try Wi-Fi and cellular simultaneously. You can also use the "hybrid=true" parameter to gain a proxy policy for the behavior.
  • You can now tell Surge to use IPv4 or IPv6 under a dual-stack environment. Read the manual for more information.

New Features: Profile Syntax

You can look up the configuration parameters for the text editing mode within the app. It always displays the syntax for the current version.

New Features: Surge VIF IPv6 Stack (No UI Settings Currently)

Surge VIF now supports the IPv6 stack for the raw TCP connections. Use parameter "ipv6-vif=true" to enable.

Improvements

  • We have changed the proxy benchmark standard. The result is now similar to a ping test result, which ignores the proxy setup cost.
  • $request.id is added to the http-request and http-response scripts for continuity among scripts.
  • Bug fixes.

Version 4.8.0 (Jun 14, 2021)

New Features:
  • Request Display Filter You may use multiple conditions to filter which requests to show.
  • Web Dashboard You may control Surge via a web browser on local or remote devices.
Other bug fixes and improvements.

Version 4.7.0 (Apr 21, 2021)

Rules

  • New rule type: SUBNET, which can match SSID/BSSID/router IP address with a wildcard pattern.
  • New rule type: CELLULAR-CARRIER, which can match the MCC-MNC code.
  • New rule type: CELLULAR-RADIO, which can match the radio access technology of the cellular network.

Profile

  • You may put partial sections into a detached file. See manual for more information.

HTTP API

  • Added new profile related HTTP APIs, including GET /profiles, POST /profiles/check
  • Added new device management HTTP APIs, including: GET /devices, POST /devices, GET /devices/icon
  • The HTTP API, proxy services, and external controller now support listening on IPv6 addresses. (No UI supports. Manual profile editing is required.)
  • You may now use 'http-api-tls=true' enable TLS for HTTP API access. (aka HTTPS-API)
Other bug fixes and improvements.

Version 4.6.0 (Feb 26, 2021)

Remote Controller

  • You may use this remote controller to view real-time statistics, and events and perform network diagnostics remotely.
  • You may use the remote controller to control the DHCP server feature of Surge Mac, including adjusting each device's settings.

Cloud Notification

  • You can receive Surge Mac's notifications on your iOS device.

Scripting

  • You may execute a script with Siri or Shortcuts.

Policy Group

In this release, we completely refactored the policy group functionality, bringing the following changes:
  1. 1.
    The url-test/fallback/load-balance policy group can no longer be configured with a specific testing URL but with a global testing URL or a policy-configured testing URL. The policy's test results can be used directly in all policy group decisions, eliminating the need to retest each policy group individually.
  2. 2.
    All types of policy groups support mixed nesting. The only requirement is that no circular references can be used.
  3. 3.
    When a group policy is used as a sub-policy of the url-test/fallback/load-balance group.
  • The latency of the select/url-test/fallback/ssid group is the latency of the selected policy.
  • The latency of the load-balance group is the average of the latencies of all available policies.
  1. 4.
    The timeout parameter of a policy group marks policies with latency exceeding this parameter as unavailable when making decisions for the group. But the maximum time taken to test the policy group is controlled by the global test-timeout parameter. (Default is 5s)
  2. 5.
    When testing a group due to decision making, all sub-policies that the group may use are tested, including sub-policies of the sub-policy group.
  3. 6.
    You may use no-alert=true parameter to suppress notifications for particular groups.

Version 4.5.1 (Jan 20, 2021)

Bug fixes

Version 4.5.0 (Jan 19, 2021)

  • New Feature: Network Layer Packet Capture: You may now capture the raw TCP/UDP/ICMP packets and inspect them right on the device. Or you can export a standard .pcap file for other tools.
  • You can customize the GeoIP database updating URL now.
  • The GeoIP database can be updated automatically now.
  • Bug fixes and improvements.

Version 4.4.3 (Oct 28, 2020)

  • Optimized for the iPhone 12 series.
  • Modified requests are now marked with orange color.
  • Bug fixes.

Version 4.4.2 (Sep 25, 2020)

Bug fixes

Version 4.4.1 (Sep 23, 2020)

Bug fixes

Version 4.4.0 (Sep 20, 2020)

New Features:
  • HTTP API: Control Surge with HTTP API with another app or from another device.
  • Proxy Chain: Connection to a remote host will be performed sequentially from one proxy server to another.
Major Improvements:
  • You may mix the external proxies with the proxies of the profile in one policy group now.
  • The DNS result view has more information.
  • You may use 'policy-regex-filter' to include a part of an external proxy list's content.
  • New CELLULAR and CELLULAR-ONLY policy.
Minor Improvements:
  • iCloud Drive sync improved.
  • You may use $notification.post in a script to post a notification with an action URL.
  • The HTTP proxy service now supports basic authentication.
  • Surge now enables TCP keepalive for all outgoing connections.
  • Surge now supports to use of a URL with a username and password to perform basic authentication for an external resource. (https://username:[email protected])
We recently published official guidance for you to understand Surge. You may find it in the More tab. Version 4.3.2 (Jun 25, 2020) Improvements for the latest iOS system. Version 4.3.1 (Jun 22, 2020) New Feature: Wi-Fi Timeline You may check the connected Wi-Fi network timeline, including entering and leaving time.
Minor Changes
  • Optimized the timing system. The DNS time cost is now calculated precisely.
  • Bug fixes.

Version 4.3.0 (Jun 4, 2020)

New Feature: Mock
  • You may mock the API server and return a static response. This feature may also be called as Map Local or API Mocking. New Feature: Event Center
  • You may now review all historical events.
Minor Changes:
  • Optimized the classical start view for Dark Mode.
  • The Load-Balance group now supports connectivity testing.
  • Add a parameter "use-local-host-item-for-proxy", to use local DNS mapping result even through a proxy protocol.
  • The module may adjust contents in [SSID Setting] now.
  • Optimized Wi-Fi Assist feature.
  • You may specify the timeout while using the script editor. Version 4.2.2 (May 19, 2020)
  • New Feature: Traffic Statistics You may examine the history of traffic usage grouped by the host, by policy, or by the network interface.
  • New Feature: DOMAIN-SET We have added a new type of rule: DOMAIN-SET, which may contain millions of sub-rules. No UI configuration in this version. Please configure with the Text Mode
[Rule] DOMAIN-SET,hostname.txt,REJECT
Each line in the file is a hostname or an IP address. If the hostname starts with a dot, all sub-domains will be matched.
  • Other bug fixes and improvements. Version 4.2.1 (Apr 28, 2020) New Feature: Enhanced Wi-Fi Assist
  • Surge will try to set up a connection with cellular data when the Wi-Fi network is poor.
Changes in DNS-over-HTTPS
  • From this version, if DNS-over-HTTPS is configured, the traditional DNS will only be used to test the connectivity and resolve the domain in the DOH URL.
  • The DNS over HTTPS now has a separate parameter: doh-server. The DOH servers in 'dns-server' will be moved to the new parameter after saving.
  • The legacy DNS is always required now.
  • DOH can be matched with rule 'PROTOCOL,DOH' now.
  • Added a new parameter 'doh-follow-outbound-mode'. In the previous version, the DOH client follows the system proxy settings. From this version, all DOH requests will use DIRECT policy by default. If 'doh-follow-outbound-mode' is set, the DOH requests will follow the outbound mode settings regardless of the system proxy settings.
Bug fixes and stability improvements

Version 4.2.0 (Apr 17, 2020)

New Feature: Module Module is a set of settings to override the current profile. You may use modules to: