diff --git a/Clash/Rule.yaml b/Clash/Rule.yaml index 9405d68..3ef0fa4 100644 --- a/Clash/Rule.yaml +++ b/Clash/Rule.yaml @@ -116,7 +116,7 @@ script: if ctx.rule_providers[rule_name].match(metadata): return ruleset_action[rule_name] - ip = ctx.resolve_ip(metadata["host"]) + ip = metadata["dst_ip"] or ctx.resolve_ip(metadata["host"]) if ip == "": return "DIRECT"