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:
Tindy X
2020-02-20 21:19:03 +08:00
parent 452c9299f1
commit c6920fbbc3
10 changed files with 254 additions and 59 deletions

View File

@@ -83,6 +83,15 @@ write_managed_config=true
;This address will also be used for generating /getruleset addresses.
managed_config_prefix=http://127.0.0.1:25500
;Managed config update interval, determine how long the config will be updated.
config_update_interval=86400
;If config_update_struct is true, Surge will require a force update after the interval.
config_update_struct=false
;Device ID to be written to rewrite scripts for some version of Quantumult X
quanx_device_id=
[surge_external_proxy]
;surge_ssr_path=/usr/bin/ssr-local