Surge 6.10.0,12500,79b87792e2bd345e064c2d473790b404
新增 VS Code 语言支持扩展及 [IP Rewrite] 的 reflect、reject、drop 操作;改进策略分组、HTTPS 测试、规则集合并和网络切换。为减少延迟,撤回按域名单独生成 MITM 密钥的改动;修复规则解析与 Dashboard 崩溃。
官方原文(完整保留;上方为摘要)
VS Code Extension
Added support for the Surge Language Support extension for VS Code, providing syntax highlighting and real-time diagnostics for profiles, modules, and rule sets. Includes automatic file detection and validation of policy references in detached configurations when the main profile is open.
This extension relies on the Surge application package and requires Surge Mac 6.10.0 or later. Its profile parsing capabilities are automatically updated when Surge is upgraded.
https://marketplace.visualstudio.com/items?itemName=SurgeNetworks.surge-language-support
IP Rewrite
- Added the
[IP Rewrite] section, which handles packets entering Surge VIF at the IP layer based on their destination address, before they reach any rule or policy. Available actions:
reflect: Swaps the source and destination addresses and sends the packet back to its sender.
reject: Responds with a TCP RST to connection attempts and with an ICMP administratively prohibited message to other packets, so the sender fails immediately.
drop: Silently discards the packet.
Improvements
- A
category parameter has been added to policy groups for grouped display. It can be used when there are many policy groups.
- All
test-url parameters now support configuring HTTPS URLs for testing. The test result remains the latency of a single HTTP RTT, but due to the TLS handshake, the test duration may increase significantly when there are many policies.
- In the previous version, MITM security was strengthened by generating a separate key pair for each distinct domain name. This caused noticeable delays when performing MITM concurrently on a large number of different domains. After evaluation, this change has been reverted.
- Improved UDP test diagnostics for peer-to-peer Tailscale and WireGuard policies without Internet egress, reporting unsupported tests instead of waiting for a timeout.
- Inline rule sets with the same name now merge across the main profile and modules instead of replacing one another, preserving rules contributed by each source.
- Optimized Tailscale and WireGuard behavior when switching networks.
- Added a new option to proactively update the configuration associated with a linked profile.
- External resource management and some other helper APIs have been added to the HTTP API.
Fixes
- Fixed logical rules incorrectly parsing policy names containing parentheses.
- Add a workaround for a system bug in macOS 27.2 beta to prevent Dashboard from crashing.
来源