From cdde464334b952a1d2224cc54711997d942ff6bf Mon Sep 17 00:00:00 2001 From: Optimus Primal <32876945+mwhds97@users.noreply.github.com> Date: Fri, 11 Dec 2020 13:13:08 +0800 Subject: [PATCH 1/2] Fix LAN match in script mode --- Clash/Rule.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Clash/Rule.yaml b/Clash/Rule.yaml index f92e000..8d6ac28 100644 --- a/Clash/Rule.yaml +++ b/Clash/Rule.yaml @@ -108,7 +108,8 @@ script: "PROXY": "Proxy", "Apple": "Apple", "Domestic": "Domestic", - "Domestic IPs": "Domestic" + "Domestic IPs": "Domestic", + "LAN": "DIRECT" } port = int(metadata["dst_port"]) @@ -125,8 +126,6 @@ script: return "DIRECT" code = ctx.geoip(ip) - if code == "LAN": - return "DIRECT" if code == "CN": return "Domestic" From b0e2edf937ac8b7933c80f57141bac055db8f350 Mon Sep 17 00:00:00 2001 From: LisonFan Date: Fri, 11 Dec 2020 20:41:18 +0800 Subject: [PATCH 2/2] add mzstatic.com --- Surge/Surge 3/Provider/Apple.list | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Surge/Surge 3/Provider/Apple.list b/Surge/Surge 3/Provider/Apple.list index e4cde3e..f8e7140 100644 --- a/Surge/Surge 3/Provider/Apple.list +++ b/Surge/Surge 3/Provider/Apple.list @@ -10,6 +10,7 @@ DOMAIN-SUFFIX,icloud.com DOMAIN-SUFFIX,icloud-content.com DOMAIN-SUFFIX,itunes.com DOMAIN-SUFFIX,me.com +DOMAIN-SUFFIX,mzstatic.com IP-CIDR,17.0.0.0/8,no-resolve IP-CIDR,63.92.224.0/19,no-resolve IP-CIDR,65.199.22.0/23,no-resolve @@ -25,4 +26,4 @@ IP-CIDR,205.180.175.0/24,no-resolve DOMAIN-SUFFIX,apple.news # > Apple Maps -PROCESS-NAME,com.apple.geod \ No newline at end of file +PROCESS-NAME,com.apple.geod