mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-05 18:44:03 +08:00
🐶 Sync 2026-10-06 23:42:56
This commit is contained in:
1 parent
bb8c995f91
commit
21c8dbd5e5
19 files changed
+653
-46
No files matched your search
@@ -375,7 +375,6 @@ function switch_dashboard_api(target_type) {
|
||||
if (parsed_native && parsed_native.enabled &&
|
||||
parsed_native.listen &&
|
||||
parsed_native.config_write &&
|
||||
parsed_native.geosite_download_url && parsed_native.geoip_download_url &&
|
||||
parsed_native.ui == target_ui) {
|
||||
return { success: true, type: target_type, noop: true };
|
||||
}
|
||||
@@ -389,8 +388,6 @@ function switch_dashboard_api(target_type) {
|
||||
let sec = (parsed_native && parsed_native.secret && length(parsed_native.secret) >= 8) ? parsed_native.secret : "honk114514";
|
||||
let listen = (parsed_native && parsed_native.listen) ? parsed_native.listen : "0.0.0.0:9527";
|
||||
let ui = target_ui;
|
||||
let geosite = (parsed_native && parsed_native.geosite_download_url) ? parsed_native.geosite_download_url : "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/release/geosite.dat";
|
||||
let geoip = (parsed_native && parsed_native.geoip_download_url) ? parsed_native.geoip_download_url : "https://raw.githubusercontent.com/QiuSimons/geoip-moedove/refs/heads/main/geoip.dat";
|
||||
|
||||
let api_inner =
|
||||
" native_api {\n" +
|
||||
@@ -399,8 +396,6 @@ function switch_dashboard_api(target_type) {
|
||||
" secret: '" + sec + "'\n" +
|
||||
" ui: '" + ui + "'\n" +
|
||||
" config_write: true\n" +
|
||||
" geosite_download_url: '" + geosite + "'\n" +
|
||||
" geoip_download_url: '" + geoip + "'\n" +
|
||||
" }\n";
|
||||
|
||||
let default_block = "experimental {\n" + api_inner + "}\n";
|
||||
|
||||
Reference in new issue
Block a user