From 63697586a24bd257404df5af31b65a8eb62b6811 Mon Sep 17 00:00:00 2001 From: misakano7545 Date: Tue, 3 May 2022 22:41:10 +0800 Subject: [PATCH] Optimize config file for support WARP Socks5 proxy mode --- main/custom_outbound.json | 13 ++++++++++++- main/route.json | 10 ++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/main/custom_outbound.json b/main/custom_outbound.json index 76b33f6..03bde8d 100644 --- a/main/custom_outbound.json +++ b/main/custom_outbound.json @@ -1,7 +1,8 @@ [ { "tag": "IPv4_out", - "protocol": "freedom" + "protocol": "freedom", + "settings": {} }, { "tag": "IPv6_out", @@ -10,6 +11,16 @@ "domainStrategy": "UseIPv6" } }, + { + "tag": "socks5-warp", + "protocol": "socks", + "settings": { + "servers": [{ + "address": "127.0.0.1", + "port": 1080 + }] + } + }, { "protocol": "blackhole", "tag": "block" diff --git a/main/route.json b/main/route.json index 9416250..f8c8c13 100644 --- a/main/route.json +++ b/main/route.json @@ -15,12 +15,22 @@ "bittorrent" ] }, + { + "type": "field", + "outboundTag": "socks5-warp", + "domain": [] + }, { "type": "field", "outboundTag": "IPv6_out", "domain": [ "geosite:netflix" ] + }, + { + "type": "field", + "outboundTag": "IPv4_out", + "network": "udp,tcp" } ] } \ No newline at end of file