From 201fad8123e15f7c63ca21ac5ea543398dd91159 Mon Sep 17 00:00:00 2001 From: lhie1 Date: Thu, 10 Sep 2020 02:55:44 +0800 Subject: [PATCH] Update Rule.yaml --- Clash/Rule.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"