mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-02 01:33:04 +00:00
Enhancements
Add support for exporting Clash proxy-provider. Add version info on Web server main page. Fix program crash when no nodes are available in generating Mellow configuration.
This commit is contained in:
2 files changed
+18
-1
No files matched your search
+13
-1
@@ -552,6 +552,13 @@ std::string netchToClash(std::vector<nodeInfo> &nodes, std::string &base_conf, s
|
||||
nodelist.emplace_back(x);
|
||||
}
|
||||
|
||||
if(ext.nodelist)
|
||||
{
|
||||
YAML::Node provider;
|
||||
provider["proxies"] = proxies;
|
||||
return YAML::Dump(provider);
|
||||
}
|
||||
|
||||
yamlnode["Proxy"] = proxies;
|
||||
std::string groupname;
|
||||
|
||||
@@ -1504,7 +1511,12 @@ std::string netchToMellow(std::vector<nodeInfo> &nodes, std::string &base_conf,
|
||||
}
|
||||
|
||||
if(!filtered_nodelist.size())
|
||||
filtered_nodelist = remarks_list;
|
||||
{
|
||||
if(!remarks_list.size())
|
||||
filtered_nodelist.emplace_back("DIRECT");
|
||||
else
|
||||
filtered_nodelist = remarks_list;
|
||||
}
|
||||
|
||||
//don't process these for now
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user