mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2025-10-27 20:03:01 +00:00
Bug fixes
Fix when parsing some subscription, the same node will appear multiple times. Fix incorrect plugin in exporting SSD subscription.
This commit is contained in:
@@ -1522,6 +1522,7 @@ void explodeSub(std::string sub, bool sslibev, bool ssrlibev, std::string custom
|
||||
char delimiter = count(sub.begin(), sub.end(), '\n') < 1 ? count(sub.begin(), sub.end(), '\r') < 1 ? ' ' : '\r' : '\n';
|
||||
while(getline(strstream, strLink, delimiter))
|
||||
{
|
||||
node.linkType = -1;
|
||||
explode(strLink, sslibev, ssrlibev, custom_port, local_port, node);
|
||||
if(strLink.size() == 0 || node.linkType == -1)
|
||||
{
|
||||
|
||||
@@ -1308,6 +1308,8 @@ std::string netchToSSD(std::vector<nodeInfo> &nodes, std::string &group, extra_s
|
||||
switch(x.linkType)
|
||||
{
|
||||
case SPEEDTEST_MESSAGE_FOUNDSS:
|
||||
if(plugin == "obfs-local")
|
||||
plugin = "simple-obfs";
|
||||
writer.StartObject();
|
||||
writer.Key("server");
|
||||
writer.String(hostname.data());
|
||||
|
||||
Reference in New Issue
Block a user