TokenPLS:Clash macOS 内置配置与 UDP Fallback 规则来源
TokenPLS 说明 Clash macOS 的内置配置只是首装时保障隧道启动的本地 profile,导入 YAML 后需在 Profiles 中选择自己的配置;其普通 UDP DNS 是为首启兼容网络而设。`AND,((NETWORK,udp),(DST-PORT,443)),REJECT` 来自 Client Settings 的 UDP Fallback,不是用户 profile;新版默认已关闭,已有设置会保留,可在设置中关闭。
作者原文@TokenPLSBoth are intentional, and both are under your control in current versions (you are on 1.0.4 (68); the current release is 1.0.15).
1) The built-in profile. It is an ordinary local profile that every install starts with so the tunnel can run before anything is imported. Importing a YAML adds a new profile next to it rather than replacing it — select the imported one in Profiles and the built-in one is no longer used. Its resolvers are plain UDP (223.5.5.5, 1.1.1.1) on purpose: DoH/DoT are blocked in enough networks that a first-launch profile cannot depend on them. If you want different DNS, put it in your own profile.
2)
AND,((NETWORK,udp),(DST-PORT,443)),REJECT. That line comes from the client setting UDP Fallback (Client Settings → UDP Fallback), not from your profile. Background: when a rule points UDP at an outbound that cannot carry UDP, the mihomo core skips that rule, and if nothing else matches the packet leaves DIRECT with your own address. The setting appends a rule afterMATCH, so it only catches UDP that fell through every rule — QUIC towards an outbound that does carry UDP is matched earlier and is not affected. In the build you are on the default was "QUIC only"; since then the default is Off (nothing is appended, the profile runs as written), and a value you already stored is kept. Set it to Off there if you do not want the rule. It has no effect onprefer-h3for DoH unless your DoH traffic would otherwise have fallen through to the end of the rule list.