mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-03 02:02:24 +00:00
Enhancements
Fix potential segmentation fault error due to some incorrect copy assignments. Fix potential crash due to incorrect usage of cURL library. Fix potential memory leak causing memory usage to be too high. Add /qx-rewrite and /qx-script interface to add device ID to scripts for some version of Quantumult X. Add policy-path parsing support for /surge2clash interface. Add interval/strict options support for managed config. Add filename option for setting file name when downloading exported subscriptions. Optimize codes.
This commit is contained in:
10 files changed
+254
-59
No files matched your search
@@ -185,6 +185,10 @@ int main(int argc, char *argv[])
|
||||
|
||||
append_response("GET", "/getprofile", "text/plain;charset=utf-8", getProfile);
|
||||
|
||||
append_response("GET", "/qx-script", "text/plain;charset=utf-8", getScript);
|
||||
|
||||
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);
|
||||
|
||||
Reference in new issue
Block a user