mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-03 02:02:24 +00:00
Enhancements
Add SNI host support in Clash configurations. Add group name/remark support for Telegram-liked HTTP/Socks 5 links. Optimize codes.
This commit is contained in:
2 files changed
+78
-64
No files matched your search
+4
-1
@@ -47,7 +47,7 @@ std::string hostnameToIPAddr(const std::string &host)
|
||||
return std::string();
|
||||
}
|
||||
|
||||
for(cur = retAddrInfo; cur != NULL; cur=cur->ai_next)
|
||||
for(cur = retAddrInfo; cur != NULL; cur = cur->ai_next)
|
||||
{
|
||||
if(cur->ai_family == AF_INET)
|
||||
{
|
||||
@@ -907,8 +907,11 @@ void netchToClash(std::vector<nodeInfo> &nodes, YAML::Node &yamlnode, string_arr
|
||||
singleproxy["skip-cert-verify"] = true;
|
||||
break;
|
||||
case SPEEDTEST_MESSAGE_FOUNDTROJAN:
|
||||
host = GetMember(json, "Host");
|
||||
singleproxy["type"] = "trojan";
|
||||
singleproxy["password"] = password;
|
||||
if(host.size())
|
||||
singleproxy["sni"] = host;
|
||||
if(std::all_of(password.begin(), password.end(), ::isdigit) && !password.empty())
|
||||
singleproxy["password"].SetTag("str");
|
||||
if(ext.skip_cert_verify)
|
||||
|
||||
Reference in new issue
Block a user