Add support for another type of Quantumult X subscriptions

This commit is contained in:
Tindy X
2020-03-28 22:43:53 +08:00
parent 4a324ed225
commit 6562a5642e

View File

@@ -1716,6 +1716,11 @@ void explodeSub(std::string sub, bool sslibev, bool ssrlibev, const std::string
if(!processed)
{
sub = urlsafe_base64_decode(trim(sub));
if(regFind(sub, "(vmess|shadowsocks|http|trojan)\\s*?="))
{
if(explodeSurge(sub, custom_port, local_port, nodes, sslibev))
return;
}
strstream << sub;
char delimiter = count(sub.begin(), sub.end(), '\n') < 1 ? count(sub.begin(), sub.end(), '\r') < 1 ? ' ' : '\r' : '\n';
while(getline(strstream, strLink, delimiter))