From 2fbac6e520c32f3ecc2f89afc29cfe8b48fe7597 Mon Sep 17 00:00:00 2001 From: Tindy X <49061470+tindy2013@users.noreply.github.com> Date: Tue, 12 Nov 2019 19:05:35 +0800 Subject: [PATCH] Fix support for Socks 5 proxies. --- subexport.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subexport.cpp b/subexport.cpp index 457aed2..f7bc716 100644 --- a/subexport.cpp +++ b/subexport.cpp @@ -125,7 +125,7 @@ std::string socksConstruct(std::string remarks, std::string server, std::string rapidjson::Writer writer(sb); writer.StartObject(); writer.Key("Type"); - writer.String("Socks"); + writer.String("Socks5"); writer.Key("Remark"); writer.String(remarks.data()); writer.Key("Hostname"); @@ -417,7 +417,7 @@ std::string netchToClash(std::vector &nodes, std::string &baseConf, st } else if(type == "Socks5") { - singleproxy["type"] = "socks"; + singleproxy["type"] = "socks5"; singleproxy["username"] = username; } else if(type == "HTTP" || type == "HTTPS")