From 6b17fd2595969be4719dd2eaf704a64aaa8c4d96 Mon Sep 17 00:00:00 2001 From: Birkhoff Lee Date: Sat, 20 May 2023 22:52:31 +0800 Subject: [PATCH] Docs(rules): fix IPSET example (#2756) --- docs/configuration/rules.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/configuration/rules.md b/docs/configuration/rules.md index 75d06d5..e29a0c8 100644 --- a/docs/configuration/rules.md +++ b/docs/configuration/rules.md @@ -122,7 +122,7 @@ IPSET rules are used to match against an IP set and route packets based on the r This feature only works on Linux and requires `ipset` to be installed. ::: -`PROCESS-PATH,/bin/sh,DIRECT` routes all packets from the process `/bin/sh` to the `DIRECT` outbound. +`IPSET,chinaip,DIRECT` routes all packets with destination IPs matching the `chinaip` IPSET to DIRECT outbound. ### RULE-SET @@ -150,4 +150,4 @@ When encountering this rule, Clash will resolve the domain name to an IP address ### MATCH -`MATCH,policy` routes the rest of the packets to `policy`. This rule is **required**. +`MATCH,policy` routes the rest of the packets to `policy`. This rule is **required** and is usually used as the last rule.