From 7effab8525352b3d8f0daa4c3f1bcd407df32dc9 Mon Sep 17 00:00:00 2001 From: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Sun, 23 Jun 2024 11:07:37 +0800 Subject: Feat: support sing-box SRS format as input & output --- config-example.json | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'config-example.json') diff --git a/config-example.json b/config-example.json index a7b933fb..4986e459 100644 --- a/config-example.json +++ b/config-example.json @@ -56,6 +56,31 @@ "onlyIPType": "ipv6" } }, + { + "type": "singboxSRS", + "action": "add", + "args": { + "name": "cn", + "uri": "https://raw.githubusercontent.com/Loyalsoldier/geoip/release/srs/cn.srs" + } + }, + { + "type": "singboxSRS", + "action": "add", + "args": { + "name": "cn", + "uri": "./srs/cn.srs", + "onlyIPType": "ipv4" + } + }, + { + "type": "singboxSRS", + "action": "add", + "args": { + "inputDir": "./srs", + "onlyIPType": "ipv6" + } + }, { "type": "cutter", "action": "remove", @@ -164,6 +189,28 @@ "onlyIPType": "ipv4" } }, + { + "type": "singboxSRS", + "action": "output", + "args": { + "outputDir": "./publish" + } + }, + { + "type": "singboxSRS", + "action": "output", + "args": { + "wantedList": ["cn", "us"] + } + }, + { + "type": "singboxSRS", + "action": "output", + "args": { + "wantedList": ["cn", "us"], + "onlyIPType": "ipv4" + } + }, { "type": "text", "action": "output", -- cgit v1.3.1