diff options
| author | Loyalsoldier <[email protected]> | 2024-08-06 05:15:45 +0800 |
|---|---|---|
| committer | Loyalsoldier <[email protected]> | 2024-08-06 05:15:45 +0800 |
| commit | 38d59d447932375cc11f91b09ffff71498eaf32e (patch) | |
| tree | f634840deb427da9f7a230513b3b4172c2b86512 /config-example.json | |
| parent | b5b24293ef86fd00d2673b1133b853a511ef9211 (diff) | |
Feat: support extended text format with prefix & suffix in line as output
Output plaintext CIDR with prefix and suffix in one line by using `text` format as output, specified by args `addPrefixInLine` and `addSuffixInLine`
Diffstat (limited to 'config-example.json')
| -rw-r--r-- | config-example.json | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/config-example.json b/config-example.json index d4e02631..eede923d 100644 --- a/config-example.json +++ b/config-example.json @@ -277,6 +277,23 @@ } }, { + "type": "text", + "action": "output", + "args": { + "outputDir": "./publish", + "onlyIPType": "ipv6", + "addPrefixInLine": "iptables -A INPUT -d ", + "addSuffixInLine": " -j DROP" + } + }, + { + "type": "text", + "action": "output", + "args": { + "addPrefixInLine": "deny from " + } + }, + { "type": "stdout", "action": "output" }, @@ -325,6 +342,13 @@ "wantedList": ["cn", "private", "test"], "onlyIPType": "ipv4" } + }, + { + "type": "surgeRuleSet", + "action": "output", + "args": { + "addSuffixInLine": ",no-resolve" + } } ] } |
