Enhancements

Add basic support for Trojan node subscriptions.
Fix a bug that some Shadowsocks nodes are missing from Loon configurations.
Optimize codes.
This commit is contained in:
Tindy X committed 2020-03-12 23:20:55 +08:00
1 parent cb94527920
commit 17ef7c6150
7 files changed
+224 -90

No files matched your search

+5
View File
@@ -278,6 +278,11 @@ int main(int argc, char *argv[])
return subconverter(argument + "&target=ssd", postdata, status_code, extra_headers);
});
append_response("GET", "/trojan", "text/plain", [](RESPONSE_CALLBACK_ARGS) -> std::string
{
return subconverter(argument + "&target=trojan", postdata, status_code, extra_headers);
});
if(!api_mode)
{
append_response("GET", "/get", "text/plain;charset=utf-8", [](RESPONSE_CALLBACK_ARGS) -> std::string