mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-04 02:34:06 +00:00
Add support for data: URIs (#62)
Add support for data: URIs. Code conversion renaming (GBK->ACP).
This commit is contained in:
1 parent
b818df6ac8
commit
b950260e68
13 files changed
+63
-17
No files matched your search
@@ -1376,7 +1376,7 @@ void explodeNetchConf(std::string netch, bool ss_libev, bool ssr_libev, std::str
|
||||
bool chkIgnore(const nodeInfo &node, string_array &exclude_remarks, string_array &include_remarks)
|
||||
{
|
||||
bool excluded = false, included = false;
|
||||
//std::string remarks = UTF8ToGBK(node.remarks);
|
||||
//std::string remarks = UTF8ToACP(node.remarks);
|
||||
std::string remarks = node.remarks;
|
||||
writeLog(LOG_TYPE_INFO, "Comparing exclude remarks...");
|
||||
excluded = std::any_of(exclude_remarks.cbegin(), exclude_remarks.cend(), [&remarks](auto &x)
|
||||
@@ -1463,6 +1463,7 @@ int explodeConfContent(std::string content, std::string custom_port, int local_p
|
||||
|
||||
void explode(std::string link, bool sslibev, bool ssrlibev, std::string custom_port, int local_port, nodeInfo &node)
|
||||
{
|
||||
// TODO: replace strFind with startsWith if appropriate
|
||||
if(strFind(link, "ssr://"))
|
||||
explodeSSR(link, sslibev, ssrlibev, custom_port, local_port, node);
|
||||
else if(strFind(link, "vmess://") || strFind(link, "vmess1://"))
|
||||
|
||||
Reference in new issue
Block a user