mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-01 17:25:02 +00:00
Fix bugs
Fix a critical bug preventing Shadowsocks obfs-host to be read in Surge 2 subscription. Optimize codes.
This commit is contained in:
3 files changed
+10
-10
No files matched your search
+2
-2
@@ -40,11 +40,11 @@ std::string GetMember(const rapidjson::Value& value, std::string member)
|
||||
return retStr;
|
||||
}
|
||||
|
||||
void GetMember(const rapidjson::Value& value, std::string member, std::string* target)
|
||||
void GetMember(const rapidjson::Value& value, std::string member, std::string& target)
|
||||
{
|
||||
std::string retStr = GetMember(value, member);
|
||||
if(retStr.size())
|
||||
target->assign(retStr);
|
||||
target.assign(retStr);
|
||||
}
|
||||
|
||||
std::string SerializeObject(const rapidjson::Value& value)
|
||||
|
||||
Reference in new issue
Block a user