From 72f131d12945d04b58a4fe9a2acbdd86a95e6a88 Mon Sep 17 00:00:00 2001 From: X1A0CA1 <52635310+X1A0CA1@users.noreply.github.com> Date: Fri, 31 Jul 2026 18:46:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Surge=20=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E4=B8=AD=E4=B8=8D=E8=A7=84=E8=8C=83=E7=9A=84=20hostna?= =?UTF-8?q?me=20=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 由于 hostname 是从前向后匹配。假如原有配置包含了 `-*.apple.com` 这种域名,使用 %APPEND% 在末尾插入现有配置会 导致永远无法 MITM 配置中的域名。 所以改为 `%INSERT%`。 --- modules/wloc.sgmodule | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/wloc.sgmodule b/modules/wloc.sgmodule index b8f8553..08a571a 100644 --- a/modules/wloc.sgmodule +++ b/modules/wloc.sgmodule @@ -11,4 +11,4 @@ Apple WLOC = type=http-response, pattern="^https?:\/\/gs-loc(-cn)?\.apple\.com\/ WLOC Settings = type=http-request, pattern="^https?:\/\/gs-loc(-cn)?\.apple\.com\/wloc-settings\/save", requires-body=0, max-size=0, timeout=10, script-path=https://raw.githubusercontent.com/Yu9191/wloc/refs/heads/main/dist/wloc-settings.js [MITM] -hostname = %APPEND% gs-loc.apple.com, gs-loc-cn.apple.com +hostname = %INSERT% gs-loc.apple.com, gs-loc-cn.apple.com