mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-04 10:42:04 +00:00
Enhancements
Fix compiler warnings. Add detailed description for some settings in pref configuration. Add passing arguments of alias name to alias target. Optimize codes.
This commit is contained in:
9 files changed
+117
-104
No files matched your search
@@ -213,76 +213,6 @@ int main(int argc, char *argv[])
|
||||
|
||||
append_response("GET", "/qx-rewrite", "text/plain;charset=utf-8", getRewriteRemote);
|
||||
|
||||
append_response("GET", "/clash", "text/plain;charset=utf-8", [](RESPONSE_CALLBACK_ARGS) -> std::string
|
||||
{
|
||||
return subconverter(argument + "&target=clash", postdata, status_code, extra_headers);
|
||||
});
|
||||
|
||||
append_response("GET", "/clashr", "text/plain;charset=utf-8", [](RESPONSE_CALLBACK_ARGS) -> std::string
|
||||
{
|
||||
return subconverter(argument + "&target=clashr", postdata, status_code, extra_headers);
|
||||
});
|
||||
|
||||
append_response("GET", "/surge", "text/plain;charset=utf-8", [](RESPONSE_CALLBACK_ARGS) -> std::string
|
||||
{
|
||||
return subconverter(argument + "&target=surge", postdata, status_code, extra_headers);
|
||||
});
|
||||
|
||||
append_response("GET", "/surfboard", "text/plain;charset=utf-8", [](RESPONSE_CALLBACK_ARGS) -> std::string
|
||||
{
|
||||
return subconverter(argument + "&target=surfboard", postdata, status_code, extra_headers);
|
||||
});
|
||||
|
||||
append_response("GET", "/mellow", "text/plain;charset=utf-8", [](RESPONSE_CALLBACK_ARGS) -> std::string
|
||||
{
|
||||
return subconverter(argument + "&target=mellow", postdata, status_code, extra_headers);
|
||||
});
|
||||
|
||||
append_response("GET", "/ss", "text/plain", [](RESPONSE_CALLBACK_ARGS) -> std::string
|
||||
{
|
||||
return subconverter(argument + "&target=ss", postdata, status_code, extra_headers);
|
||||
});
|
||||
|
||||
append_response("GET", "/sssub", "text/plain", [](RESPONSE_CALLBACK_ARGS) -> std::string
|
||||
{
|
||||
return subconverter(argument + "&target=sssub", postdata, status_code, extra_headers);
|
||||
});
|
||||
|
||||
append_response("GET", "/ssr", "text/plain", [](RESPONSE_CALLBACK_ARGS) -> std::string
|
||||
{
|
||||
return subconverter(argument + "&target=ssr", postdata, status_code, extra_headers);
|
||||
});
|
||||
|
||||
append_response("GET", "/v2ray", "text/plain", [](RESPONSE_CALLBACK_ARGS) -> std::string
|
||||
{
|
||||
return subconverter(argument + "&target=v2ray", postdata, status_code, extra_headers);
|
||||
});
|
||||
|
||||
append_response("GET", "/quan", "text/plain", [](RESPONSE_CALLBACK_ARGS) -> std::string
|
||||
{
|
||||
return subconverter(argument + "&target=quan", postdata, status_code, extra_headers);
|
||||
});
|
||||
|
||||
append_response("GET", "/quanx", "text/plain;charset=utf-8", [](RESPONSE_CALLBACK_ARGS) -> std::string
|
||||
{
|
||||
return subconverter(argument + "&target=quanx", postdata, status_code, extra_headers);
|
||||
});
|
||||
|
||||
append_response("GET", "/loon", "text/plain;charset=utf-8", [](RESPONSE_CALLBACK_ARGS) -> std::string
|
||||
{
|
||||
return subconverter(argument + "&target=loon", postdata, status_code, extra_headers);
|
||||
});
|
||||
|
||||
append_response("GET", "/ssd", "text/plain", [](RESPONSE_CALLBACK_ARGS) -> std::string
|
||||
{
|
||||
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);
|
||||
});
|
||||
|
||||
append_response("GET", "/render", "text/plain;charset=utf-8", renderTemplate);
|
||||
|
||||
if(!api_mode)
|
||||
|
||||
Reference in new issue
Block a user